jIKVttl

Extends

interface for KV driver which support 'time to live' on values useful to use the driver as a cache storage

package

jelix

Methods

delete all keys which are not any more valid

garbage() : boolean

Response

boolean

false if failure

set a key/value with a ttl value

setWithTtl(string $key, string $value, integer $ttl) : boolean

Arguments

$key

string

the key

$value

string

the value

$ttl

integer

the time to live in seconds...

Response

boolean

false if failure, if the value is a resource...