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
Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
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 $value, null|int|DateInterval $ttl = null)
Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
mixed
get(string $key, mixed $default = 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, null|int|DateInterval $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
protected int
calculateLifetimeFromDateInterval(DateInterval $ttl)
No description