Jelix 1.6.40

jIKVttl
in

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

Table of Contents

garbage()  : bool
delete all keys which are not any more valid
setWithTtl()  : bool
set a key/value with a ttl value

Methods

garbage()

delete all keys which are not any more valid

public garbage() : bool
Return values
bool

false if failure

setWithTtl()

set a key/value with a ttl value

public setWithTtl(string $key, string $value, int $ttl) : bool
Parameters
$key : string

the key

$value : string

the value

$ttl : int

the time to live in seconds...

Return values
bool

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

Search results