class CRM_Utils_Cache_SqlGroup implements CRM_Utils_Cache_Interface

This caching provider stores all cached items as a "group" in the "civicrm_cache" table. The entire 'group' may be prefetched when instantiating the cache provider.

Properties

protected string $group The host name of the memcached server.
protected int $componentID
protected array $frontCache

Methods

__construct(array $config)

Constructor.

set(string $key, mixed $value)

No description

mixed
get(string $key)

No description

mixed
getFromFrontCache($key, null $default = NULL)

No description

delete(string $key)

No description

flush()

Delete all values from the cache.

prefetch()

No description

Details

at line 70
CRM_Utils_Cache_SqlGroup __construct(array $config)

Constructor.

Parameters

array $config An array of configuration params. - group: string - componentID: int - prefetch: bool, whether to preemptively read the entire cache group; default: TRUE

Return Value

CRM_Utils_Cache_SqlGroup

Exceptions

RuntimeException

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

Parameters

string $key
mixed $value

at line 103
mixed get(string $key)

Parameters

string $key

Return Value

mixed NULL if $key has not been previously set

at line 116
mixed getFromFrontCache($key, null $default = NULL)

Parameters

$key
null $default

Return Value

mixed

at line 123
delete(string $key)

Parameters

string $key

at line 128
flush()

Delete all values from the cache.

at line 133
prefetch()