Method |
Description |
|
add ( string $key, mixed $value, integer $ttl = 2592000, string | array $tags = NULL ) : boolean | integer |
Add key to memory. If this key already exists - false will returned. |
|
del ( string $key ) : boolean |
Delete key from memory |
|
del_by_tags ( array | string $tags ) : boolean |
Delete keys by tags |
|
del_old ( ) : boolean |
Delete old (by ttl) variables from storage |
|
getSingleMemory ( ) |
|
|
get_keys ( ) |
Return array of all stored keys |
|
increment ( string $key, mixed $by_value = 1, integer $limit_keys_count, integer $ttl = 259200 ) : integer | string | array |
Increment value of key |
|
lock_key ( mixed $key, mixed &$auto_unlocker_variable ) |
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. |
|
read ( string | array $key, &$ttl_left ) : mixed |
Read key value from memory |
|
save ( string $key, mixed $value, integer $ttl = 2592000, string | array $tags = NULL ) : boolean | void |
|
|
select_fx ( callable $fx, boolean $get_array = false ) : mixed |
Select from memory elements by function $fx |
|
setMutex ( Jamm\Memory\Shm\IMutex $mutex ) |
|
|
unlock_key ( KeyAutoUnlocker $key_auto_unlocker ) : boolean |
Unlock key, locked by method 'lock_key' |
|