W3cubDocs

/Symfony 4.1

TraceableAdapter

class TraceableAdapter implements AdapterInterface, PruneableInterface, ResettableInterface

An adapter that collects data about all cache calls.

Properties

protected $pool

Methods

__construct(AdapterInterface $pool)
CacheItem getItem($key)

{@inheritdoc}

hasItem($key)

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

save(CacheItemInterface $item)

{@inheritdoc}

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Traversable|CacheItem[] getItems(array $keys = array())

{@inheritdoc}

clear()

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

commit()

{@inheritdoc}

bool prune()
reset()
getCalls()
clearCalls()
start($name)

Details

__construct(AdapterInterface $pool)

Parameters

AdapterInterface $pool

CacheItem getItem($key)

{@inheritdoc}

Parameters

$key

Return Value

CacheItem

hasItem($key)

{@inheritdoc}

Parameters

$key

deleteItem($key)

{@inheritdoc}

Parameters

$key

save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

Traversable|CacheItem[] getItems(array $keys = array())

{@inheritdoc}

Parameters

array $keys

Return Value

Traversable|CacheItem[]

clear()

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

commit()

{@inheritdoc}

bool prune()

Return Value

bool

reset()

getCalls()

clearCalls()

protected start($name)

Parameters

$name

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