PHP Class Nette\Caching\Storages\SQLiteStorage

Inheritance: implements Nette\Caching\IStorage, implements Nette\Caching\IBulkReader, use trait Nette\SmartObject
Show file Open project: nette/caching

Public Methods

Method Description
__construct ( $path )
bulkRead ( array $keys ) : array Reads from cache in bulk.
clean ( array $conditions ) : void Removes items from the cache by conditions & garbage collector.
lock ( $key ) : void Prevents item reading and writing. Lock is released by write() or remove().
read ( $key ) : mixed | null Read from cache.
remove ( $key ) : void Removes item from the cache.
write ( $key, $data, array $dependencies ) : void Writes item into the cache.

Method Details

__construct() public method

public __construct ( $path )

bulkRead() public method

Reads from cache in bulk.
public bulkRead ( array $keys ) : array
$keys array
return array key => value pairs, missing items are omitted

clean() public method

Removes items from the cache by conditions & garbage collector.
public clean ( array $conditions ) : void
$conditions array
return void

lock() public method

Prevents item reading and writing. Lock is released by write() or remove().
public lock ( $key ) : void
return void

read() public method

Read from cache.
public read ( $key ) : mixed | null
return mixed | null

remove() public method

Removes item from the cache.
public remove ( $key ) : void
return void

write() public method

Writes item into the cache.
public write ( $key, $data, array $dependencies ) : void
$dependencies array
return void