CRM_Utils_Cache_APCcache
class CRM_Utils_Cache_APCcache implements CRM_Utils_Cache_Interface
Traits
Constants
DEFAULT_TIMEOUT |
|
DEFAULT_PREFIX |
|
Properties
protected int | $_timeout | The default timeout to use. | |
protected string | $_prefix | The prefix prepended to cache keys. |
Methods
Obtains multiple cache items by their unique keys.
Persists a set of key => value pairs in the cache, with an optional TTL.
Deletes multiple cache items in a single operation.
Constructor.
No description
No description
Delete all values from the cache.
Delete all values from the cache.
Details
in CRM_Utils_Cache_NaiveMultipleTrait at line 53
iterable
getMultiple(iterable $keys, mixed $default = NULL)
Obtains multiple cache items by their unique keys.
in CRM_Utils_Cache_NaiveMultipleTrait at line 77
bool
setMultiple(iterable $values, null|int|DateInterval $ttl = NULL)
Persists a set of key => value pairs in the cache, with an optional TTL.
in CRM_Utils_Cache_NaiveMultipleTrait at line 101
bool
deleteMultiple(iterable $keys)
Deletes multiple cache items in a single operation.
in CRM_Utils_Cache_NaiveHasTrait at line 40
has($key)
at line 69
CRM_Utils_Cache_APCcache
__construct(array $config)
Constructor.
at line 85
bool
set(string $key, mixed $value, null|int|DateInterval $ttl = NULL)
at line 105
mixed
get(string $key, mixed $default = NULL)
at line 119
bool
delete(string $key)
at line 125
bool
flush()
Delete all values from the cache.
NOTE: flush() and clear() should be aliases. flush() is specified by Civi's traditional interface, and clear() is specified by PSR-16.
at line 143
bool
clear()
Delete all values from the cache.
NOTE: flush() and clear() should be aliases. flush() is specified by Civi's traditional interface, and clear() is specified by PSR-16.