W3cubDocs

/Symfony 4.1

TraceableCache

class TraceableCache implements CacheInterface, PruneableInterface, ResettableInterface

An adapter that collects data about all cache calls.

Methods

__construct(CacheInterface $pool)
get($key, $default = null)

{@inheritdoc}

has($key)

{@inheritdoc}

delete($key)

{@inheritdoc}

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

{@inheritdoc}

setMultiple($values, $ttl = null)

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

clear()

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

bool prune()
reset()
getCalls()

Details

__construct(CacheInterface $pool)

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($values, $ttl = null)

{@inheritdoc}

Parameters

$values
$ttl

getMultiple($keys, $default = null)

{@inheritdoc}

Parameters

$keys
$default

clear()

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

bool prune()

Return Value

bool

reset()

getCalls()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Simple/TraceableCache.html