Свойство | Type | Description | |
---|---|---|---|
$lockManager | * @var \Metaphore\LockManager | ||
$onNoStaleCacheCallable | * @var callable | ||
$valueStore | * @var \Metaphore\Store\ValueStoreInterface |
Méthode | Description | |
---|---|---|
__construct ( Metaphore\Store\ValueStoreInterface $valueStore, |
||
cache ( $key, callable $cachedCallable, $ttl, callable $onNoStaleCacheCallable = null ) | Caches specified closure/method/function for specified time. | |
delete ( $key ) : boolean | ||
getLockManager ( ) : |
||
getValue ( $key ) : |
||
getValueStore ( ) : Metaphore\Store\ValueStoreInterface | ||
onNoStaleCache ( callable $onNoStaleCacheCallable ) | ||
setResult ( $key, $result, $ttl ) | Sets result. Does not use anti-dogpile-effect mechanism. Use cache() instead for this. |
public __construct ( Metaphore\Store\ValueStoreInterface $valueStore, |
||
$valueStore | Metaphore\Store\ValueStoreInterface | |
$lockManager |
public getValueStore ( ) : Metaphore\Store\ValueStoreInterface | ||
Résultat | Metaphore\Store\ValueStoreInterface |
public onNoStaleCache ( callable $onNoStaleCacheCallable ) | ||
$onNoStaleCacheCallable | callable |
public setResult ( $key, $result, $ttl ) |