DevNullStorage
class DevNullStorage implements Storage
No-op storage that discards all data. Useful for disabling caching.
Methods
mixed
read(string $key)
Reads item from the cache. Returns null if the item does not exist or has expired.
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
void
write(string $key, mixed $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 18
mixed
read(string $key)
Reads item from the cache. Returns null if the item does not exist or has expired.
at line 24
void
lock(string $key)
Prevents item reading and writing. Lock is released by write() or remove().
at line 29
void
write(string $key, mixed $data, array $dependencies)
Writes item into the cache.
at line 34
void
remove(string $key)
Removes item from the cache.
at line 39
void
clean(array $conditions)
Removes items from the cache by conditions.