SimpleCache
class SimpleCache implements CacheInterface (View source)
A simple cache frontend Note: This does not follow the \Neos\Cache\Frontend\FrontendInterface this package provides.
Constants
PATTERN_ENTRYIDENTIFIER |
Pattern an entry identifier must match. |
Properties
protected string | $identifier | ||
protected BackendInterface | $backend |
Methods
Saves the value of a PHP variable in the cache. Note that the variable will be serialized if necessary.
Finds and returns a variable value from the cache.
No description
No description
No description
No description
No description
No description
No description
No description
Details
__construct(string $identifier, BackendInterface $backend)
Constructs the cache
bool
set(string $key, mixed $variable, int $lifetime = null)
Saves the value of a PHP variable in the cache. Note that the variable will be serialized if necessary.
mixed
get(string $key, mixed $defaultValue = null)
Finds and returns a variable value from the cache.
bool
delete(string $key)
No description
bool
clear()
No description
iterable
getMultiple(iterable $keys, mixed $default = null)
No description
bool
setMultiple(iterable $values, int $ttl = null)
No description
bool
deleteMultiple(iterable $keys)
No description
bool
has(string $key)
No description
protected bool
isValidEntryIdentifier(string $key)
No description
protected void
ensureValidEntryIdentifier(string $key)
No description