class CRM_Utils_Cache_Memcache implements CRM_Utils_Cache_Interface

Constants

DEFAULT_HOST

DEFAULT_PORT

DEFAULT_TIMEOUT

DEFAULT_PREFIX

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 Memcache $_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

flush()

No description

Details

at line 86
CRM_Utils_Cache_Memcache __construct(array $config)

Constructor.

Parameters

array $config An array of configuration params.

Return Value

CRM_Utils_Cache_Memcache

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

Parameters

string $key
mixed $value

at line 127
mixed get(string $key)

Parameters

string $key

Return Value

mixed NULL if $key has not been previously set

at line 137
delete(string $key)

Parameters

string $key

at line 144
flush()