abstract class ProxyCacheAdapter implements CacheInterface, ResettableInterface, PruneableInterface (View source)

psr-6 cache proxy for an internal cache, which provides segmentation of cache keys based on current versioned mode. This ensures that cross-stage content cannot cross-pollenate each other.

Note: segmentation can be disabled via 'versionedstate = false' being supplied as a constructor arg.

Based on Symfony\Component\Cache\Simple\TraceableCache

Methods

__construct(CacheInterface $pool)

Create container cache controlling an inner pool 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

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}