class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface

Constants

DEFAULT_HOST

DEFAULT_PORT

DEFAULT_TIMEOUT

DEFAULT_PREFIX

Properties

protected string $_host The host name of the redisd server
protected int $_port The port on which to connect on
protected int $_timeout The default timeout to use
protected string $_prefix The prefix prepended to cache keys.
protected Redis $_cache The actual redis object

Methods

__construct(array $config)

Constructor

set(string $key, mixed $value)

No description

mixed
get(string $key)

No description

delete(string $key)

No description

flush()

No description

Details

at line 88
CRM_Utils_Cache_Redis __construct(array $config)

Constructor

Parameters

array $config An array of configuration params.

Return Value

CRM_Utils_Cache_Redis

at line 118
set(string $key, mixed $value)

Parameters

string $key
mixed $value

Exceptions

Exception

at line 131
mixed get(string $key)

Parameters

string $key

Return Value

mixed NULL if $key has not been previously set

at line 141
delete(string $key)

Parameters

string $key

at line 148
flush()