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
$createdir
public
mixed
$createdir
= \false
$_redisHost
private
mixed
$_redisHost
$_redisHostConn
private
mixed
$_redisHostConn
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 —_read()
public
_read() : bool
Return values
bool —_setFileName()
public
_setFileName(string $id, string $group) : mixed
Parameters
- $id : string
- $group : string
Return values
mixed —_touchCacheFile()
public
_touchCacheFile() : mixed
Return values
mixed —_unlink()
public
_unlink(string $file[, bool $skip_master = false ]) : bool
Parameters
- $file : string
- $skip_master : bool = false
Return values
bool —_write()
public
_write(string $data) : bool
Parameters
- $data : string
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
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
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
Return values
mixed —redisConnect()
public
redisConnect( $key) : bool|Redis
Parameters
Return values
bool|Redis —redisConnectMaster()
public
redisConnectMaster() : bool
Return values
bool —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