class VersionedCacheAdapter extends ProxyCacheAdapter (View source)

Methods

__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.

get($key, $default = null)

{@inheritdoc}

has($key)

{@inheritdoc}

delete($key)

{@inheritdoc}

set($key, $value, $ttl = null)

{@inheritdoc}

setMultiple($items, $ttl = null)

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

clear()

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

prune()

{@inheritdoc}

reset()

{@inheritdoc}

Details

__construct(CacheInterface $pool)

Create container cache controlling an inner pool cache

Parameters

CacheInterface $pool

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()

Return Value

array

get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

has($key)

{@inheritdoc}

Parameters

$key

delete($key)

{@inheritdoc}

Parameters

$key

set($key, $value, $ttl = null)

{@inheritdoc}

Parameters

$key
$value
$ttl

setMultiple($items, $ttl = null)

{@inheritdoc}

Parameters

$items
$ttl

getMultiple($keys, $default = null)

{@inheritdoc}

Parameters

$keys
$default

clear()

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

prune()

{@inheritdoc}

reset()

{@inheritdoc}