class CRM_Utils_Cache_Memcached implements CRM_Utils_Cache_Interface

Constants

DEFAULT_HOST

DEFAULT_PORT

DEFAULT_TIMEOUT

DEFAULT_PREFIX

MAX_KEY_LEN

Properties

protected string $_host The host name of the memcached 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 Memcached $_cache The actual memcache object.

Methods

__construct(array $config)

Constructor.

set(string $key, mixed $value)

No description

mixed
get(string $key)

No description

delete(string $key)

No description

mixed|string
cleanKey($key)

No description

flush()

No description

Details

at line 87
CRM_Utils_Cache_Memcached __construct(array $config)

Constructor.

Parameters

array $config An array of configuration params.

Return Value

CRM_Utils_Cache_Memcached

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

Parameters

string $key
mixed $value

Exceptions

Exception

at line 132
mixed get(string $key)

Parameters

string $key

Return Value

mixed NULL if $key has not been previously set

at line 143
delete(string $key)

Parameters

string $key

at line 153
mixed|string cleanKey($key)

Parameters

$key

Return Value

mixed|string

at line 166
flush()