TraceableAdapter
class TraceableAdapter implements AdapterInterface, PruneableInterface, ResettableInterface
An adapter that collects data about all cache calls.
Methods
__construct(AdapterInterface $pool) | ||
CacheItem | getItem($key) {@inheritdoc} | |
hasItem($key) {@inheritdoc} | ||
deleteItem($key) {@inheritdoc} | ||
save(CacheItemInterface $item) {@inheritdoc} | ||
saveDeferred(CacheItemInterface $item) {@inheritdoc} | ||
getItems(array $keys = array()) {@inheritdoc} | ||
clear() {@inheritdoc} | ||
deleteItems(array $keys) {@inheritdoc} | ||
commit() {@inheritdoc} | ||
bool | prune() | |
reset() | ||
getCalls() |
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 |
getItems(array $keys = array())
{@inheritdoc}
return \Traversable|CacheItem[]
Parameters
array | $keys |
clear()
{@inheritdoc}
deleteItems(array $keys)
{@inheritdoc}
Parameters
array | $keys |
commit()
{@inheritdoc}
bool prune()
Return Value
bool |
reset()
getCalls()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Cache/Adapter/TraceableAdapter.html