Cache driver class.

package core

 Methods

Delete data from the persistent cache.

delete(string $key) 

Parameters

$key

string

Key

Remove all data from the persistent cache.

flush() 

Get data from the persistent cache.

get(string $key, \?TIME $min_cache_date = null) : \?mixed

Parameters

$key

string

Key

$min_cache_date

\?TIME

Minimum timestamp that entries from the cache may hold (null: don't care)

Returns

\?mixedThe data (null: not found / NULL entry)

Instruction to load up the objects list.

load_objects_list() : array

Returns

arrayThe list of objects

Put data into the persistent cache.

set(string $key, mixed $data, integer $flags = 0, \?integer $expire_secs = null

Parameters

$key

string

Key

$data

mixed

The data

$flags

integer

Various flags (parameter not used)

$expire_secs

\?integer

The expiration time in seconds (null: no expiry)

 Properties

 

$objects_list

$objects_list 

Default

null