TagAwareAdapter
class TagAwareAdapter implements TagAwareAdapterInterface, TagAwareCacheInterface, PruneableInterface, ResettableInterface
Traits
An implementation of CacheInterface for PSR-6 CacheItemPoolInterface classes.
Constants
TAGS_PREFIX |
|
Methods
get(string $key, callable $callback, float $beta = null, array $metadata = null)
{@inheritdoc}
from CacheTrait
callable
setCallbackWrapper(callable|null $callbackWrapper)
Wraps the callback passed to ->get() in a callable.
from ContractsTrait
__construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null, float $knownTagVersionsTtl = 0.15)
No description
bool
invalidateTags(array $tags)
Invalidates cached items using tags.
hasItem($key)
{@inheritdoc}
getItems(array $keys = array())
{@inheritdoc}
clear()
{@inheritdoc}
deleteItem($key)
{@inheritdoc}
deleteItems(array $keys)
{@inheritdoc}
save(CacheItemInterface $item)
{@inheritdoc}
saveDeferred(CacheItemInterface $item)
{@inheritdoc}
commit()
{@inheritdoc}
__destruct()
No description
Details
callable
setCallbackWrapper(callable|null $callbackWrapper)
Wraps the callback passed to ->get() in a callable.