Свойство | Тип | Описание | |
---|---|---|---|
$lockManager | * @var \Metaphore\LockManager | ||
$onNoStaleCacheCallable | * @var callable | ||
$valueStore | * @var \Metaphore\Store\ValueStoreInterface |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | Metaphore\Store\ValueStoreInterface |
public onNoStaleCache ( callable $onNoStaleCacheCallable ) | ||
$onNoStaleCacheCallable | callable |
public setResult ( $key, $result, $ttl ) |