class SQLiteStorage implements Storage, BulkReader

SQLite storage.

Methods

__construct(string $path)

No description

mixed
read(string $key)

Read from cache.

array
bulkRead(array $keys)

Reads from cache in bulk.

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
__construct(string $path)

No description

Parameters

string $path

at line 54
mixed read(string $key)

Read from cache.

Parameters

string $key

Return Value

mixed

at line 70
array bulkRead(array $keys)

Reads from cache in bulk.

Parameters

array $keys

Return Value

array

key => value pairs, missing items are omitted

at line 93
void lock(string $key)

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

Parameters

string $key

Return Value

void

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

Writes item into the cache.

Parameters

string $key
$data
array $dependencies

Return Value

void

at line 125
void remove(string $key)

Removes item from the cache.

Parameters

string $key

Return Value

void

at line 132
void clean(array $conditions)

Removes items from the cache by conditions.

Parameters

array $conditions

Return Value

void

Traits

Strict class for better experience.