class DevNullStorage implements IStorage

Cache dummy 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, 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 20
mixed read(string $key)

Read from cache.

Parameters

string $key

Return Value

mixed

at line 25
void lock(string $key)

Prevents item reading and writing. Lock is released by write() or remove().

Parameters

string $key

Return Value

void

at line 30
void write(string $key, mixed $data, array $dependencies)

Writes item into the cache.

Parameters

string $key
mixed $data
array $dependencies

Return Value

void

at line 35
void remove(string $key)

Removes item from the cache.

Parameters

string $key

Return Value

void

at line 40
void clean(array $conditions)

Removes items from the cache by conditions.

Parameters

array $conditions

Return Value

void

Traits

SmartObject