Méthode |
Description |
|
__construct ( StopwatchHelper $stopwatch, AbstractCache $distributedCache, AbstractCache $fastCache ) |
|
|
deleteDistributedCache ( string $key ) |
Deletes a distributed cache |
|
getDistributedCache ( string $key ) : mixed |
Returns a distributed cache value. |
|
getFastCache ( string $key ) : mixed |
Returns a local cache value. |
|
invalidateCache ( string $key, integer $time = null ) : boolean |
Marks a code as invalidate beginning at $time. |
|
isCacheIsValid ( $key, $timestamp ) : integer | null |
Returns latest invalidation timestamp for the given $key. |
|
setDistributedCache ( string $key, mixed $value, integer $lifeTime = null ) : boolean |
Sets a distributed cache. |
|
setFastCache ( string $key, mixed $value, integer $lifeTime = null ) : boolean |
Sets a local cache using very fast cache techniques like apc_store or php arrays. |
|