VersionedCacheAdapter
class VersionedCacheAdapter extends ProxyCacheAdapter (View source)
Properties
protected | CacheInterface | $pool | from ProxyCacheAdapter |
Methods
Create container cache controlling an inner pool cache
Do not serialize() $this->pool
because it may contain a non-serializable cache.
Ensure that a list is cast to an array
Details
__construct(CacheInterface $pool)
Create container cache controlling an inner pool cache
array
__sleep()
Do not serialize() $this->pool
because it may contain a non-serializable cache.
For instance, Symfony\Component\Cache\Simple\FilesystemCache cannot be serialized because in will throw an exception in Symfony\Component\Cache\Traits\FilesystemCommonTrait::__sleep()
mixed
get(string $key, $default = null)
{@inheritdoc}
bool
has(string $key)
{@inheritdoc}
bool
delete(string $key)
{@inheritdoc}
bool
set(string $key, mixed $value, $ttl = null)
{@inheritdoc}
bool
setMultiple(iterable $items, $ttl = null)
{@inheritdoc}
iterable
getMultiple(iterable $keys, $default = null)
{@inheritdoc}
bool
clear()
{@inheritdoc}
bool
deleteMultiple(iterable $keys)
{@inheritdoc}
bool
prune()
{@inheritdoc}
reset()
{@inheritdoc}
protected string
getKeyID(string $key)
Ensure keys are segmented based on reading mode
protected array
getKeyIDs(iterable $keys)
Get key ids
protected array
iteratorToArray(iterable $keys)
Ensure that a list is cast to an array