TraceableAdapter
class TraceableAdapter implements AdapterInterface, PruneableInterface, ResettableInterface
Адаптер, который собирает данные обо всех вызовах к кэшу.
Свойства
| protected | $pool |
Методы
| __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) |
Подробности
__construct(AdapterInterface $pool)
Параметры
| AdapterInterface | $pool |
CacheItem getItem($key)
{@inheritdoc}
Параметры
| $key |
Возвращаемое значение
| CacheItem |
hasItem($key)
{@inheritdoc}
Параметры
| $key |
deleteItem($key)
{@inheritdoc}
Параметры
| $key |
save(CacheItemInterface $item)
{@inheritdoc}
Параметры
| CacheItemInterface | $item |
saveDeferred(CacheItemInterface $item)
{@inheritdoc}
Параметры
| CacheItemInterface | $item |
Traversable|CacheItem[] getItems(array $keys = array())
{@inheritdoc}
Параметры
| array | $keys |
Возвращаемое значение
| Traversable|CacheItem[] |
clear()
{@inheritdoc}
deleteItems(array $keys)
{@inheritdoc}
Параметры
| array | $keys |
commit()
{@inheritdoc}
bool prune()
Возвращаемое значение
| bool |
reset()
getCalls()
clearCalls()
protected start($name)
Параметры
| $name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Adapter/TraceableAdapter.html