CRM_Utils_Cache_ArrayCache
class CRM_Utils_Cache_ArrayCache implements CRM_Utils_Cache_Interface
Class CRM_Utils_Cache_ArrayCache
Traits
Constants
DEFAULT_TIMEOUT |
|
Properties
protected array | $_cache | The cache storage container, an in memory array by default | |
protected | $_expires |
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.
No description
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 61
CRM_Utils_Cache_ArrayCache
__construct(array $config)
Constructor.
at line 73
bool
set(string $key, mixed $value, null|int|DateInterval $ttl = NULL)
at line 87
mixed
get(string $key, mixed $default = NULL)
at line 103
bool
delete(string $key)
at line 111
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 118
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.