TimeTrex API Manual

Redis_Cache_Lite extends Cache_Lite
in package

Class Redis_Cache_Lite

Table of Contents

$createdir  : mixed
$_redisHost  : mixed
$_redisHostConn  : mixed
__construct()  : mixed
Redis_Cache_Lite constructor.
_read()  : bool
_setFileName()  : mixed
_touchCacheFile()  : mixed
_unlink()  : bool
_write()  : bool
clean()  : bool
createdir()  : bool
flushall()  : bool
flushcache()  : bool
get()  : bool|mixed
readcache()  : mixed
redisConnect()  : bool|Redis
redisConnectMaster()  : bool
save()  : bool
setOption()  : mixed
writecache()  : bool

Properties

Methods

__construct()

Redis_Cache_Lite constructor.

public __construct([array<string|int, mixed> $options = [null] ]) : mixed
Parameters
$options : array<string|int, mixed> = [null]
Return values
mixed

_setFileName()

public _setFileName(string $id, string $group) : mixed
Parameters
$id : string
$group : string
Return values
mixed
public _unlink(string $file[, bool $skip_master = false ]) : bool
Parameters
$file : string
$skip_master : bool = false
Return values
bool

clean()

public clean([bool $group = false ][, string $mode = 'ingroup' ][, bool $skip_master = false ]) : bool
Parameters
$group : bool = false
$mode : string = 'ingroup'
$skip_master : bool = false
Return values
bool

createdir()

public createdir( $dir,  $hash) : bool
Parameters
$dir :
$hash :
Return values
bool

flushall()

public flushall([bool $debug = false ]) : bool
Parameters
$debug : bool = false
Return values
bool

flushcache()

public flushcache( $filename[, bool $debug = false ]) : bool
Parameters
$filename :
$debug : bool = false
Return values
bool

get()

public get(string $id[, string $group = 'default' ][, bool $doNotTestCacheValidity = false ]) : bool|mixed
Parameters
$id : string
$group : string = 'default'
$doNotTestCacheValidity : bool = false
Return values
bool|mixed

readcache()

public readcache( $filename,  &$err,  $secs2cache,  $rsClass) : mixed
Parameters
$filename :
$err :
$secs2cache :
$rsClass :
Return values
mixed

redisConnect()

public redisConnect( $key) : bool|Redis
Parameters
$key :
Return values
bool|Redis

save()

public save(string $data[, string $id = null ][, string $group = 'default' ]) : bool
Parameters
$data : string
$id : string = null

UUID

$group : string = 'default'
Return values
bool

setOption()

public setOption(string $name, mixed $value) : mixed
Parameters
$name : string
$value : mixed
Return values
mixed

writecache()

public writecache( $filename,  $contents[, bool $debug = false ]) : bool
Parameters
$filename :
$contents :
$debug : bool = false
Return values
bool

Search results