IStorage
interface IStorage
Cache storage.
Methods
mixed|null
read($key)
Read from cache.
void
lock($key)
Prevents item reading and writing. Lock is released by write() or remove().
void
write($key, $data, array $dependencies)
Writes item into the cache.
void
remove($key)
Removes item from the cache.
void
clean(array $conditions)
Removes items from the cache by conditions.
Details
at line 22
mixed|null
read($key)
Read from cache.
at line 29
void
lock($key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 38
void
write($key, $data, array $dependencies)
Writes item into the cache.
at line 45
void
remove($key)
Removes item from the cache.
at line 52
void
clean(array $conditions)
Removes items from the cache by conditions.