Method |
Description |
|
__construct ( Couchbase $couchbase ) |
Constructor. |
|
acquireKey ( string $key, &$autoUnlocker ) : boolean |
Try to lock key, and if key is already locked - wait, until key will be unlocked. |
|
delete ( string | array $key ) : boolean | array |
Delete key or array of keys from storage. |
|
deleteByTags ( array | string $tag ) : boolean |
Delete keys by tags. |
|
deleteOld ( ) : boolean |
Delete expired cache values. |
|
lockKey ( mixed $key, mixed &$autoUnlockerVariable ) : boolean |
Get exclusive mutex for key. Key will be still accessible to read and write, but
another process can exclude dog-pile effect, if before updating the key he will try to get this mutex. |
|
selectByCallback ( callable $callback, boolean $getArray = false ) : mixed |
Select from storage via callback function. |
|