CRM_Utils_Cache_NoCache
class CRM_Utils_Cache_NoCache implements CRM_Utils_Cache_Interface
Traits
Methods
iterable
getMultiple(iterable $keys, mixed $default = NULL)
Obtains multiple cache items by their unique keys.
bool
setMultiple(iterable $values, null|int|DateInterval $ttl = NULL)
Persists a set of key => value pairs in the cache, with an optional TTL.
bool
deleteMultiple(iterable $keys)
Deletes multiple cache items in a single operation.
__construct(array $config)
Constructor.
bool
mixed
get(string $key, mixed $default = NULL)
No description
bool
delete(string $key)
No description
bool
flush()
No description
bool
clear()
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 56
CRM_Utils_Cache_NoCache
__construct(array $config)
Constructor.
at line 66
bool
set(string $key, mixed $value, null|int|DateInterval $ttl = NULL)
at line 76
mixed
get(string $key, mixed $default = NULL)
at line 85
bool
delete(string $key)
at line 92
bool
flush()
at line 96
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.