MemoryStorage
class MemoryStorage implements IStorage
Memory cache storage.
Methods
mixed
read(string $key)
Read from cache.
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
void
write(string $key, $data, array $dependencies)
Writes item into the cache.
void
remove(string $key)
Removes item from the cache.
void
clean(array $conditions)
Removes items from the cache by conditions.
Details
at line 26
mixed
read(string $key)
Read from cache.
at line 32
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 37
void
write(string $key, $data, array $dependencies)
Writes item into the cache.
at line 43
void
remove(string $key)
Removes item from the cache.
at line 49
void
clean(array $conditions)
Removes items from the cache by conditions.
Traits
Strict class for better experience.