Aviat\Banker\Pool
The main cache manager
Synopsis
class Pool
implements
CacheItemPoolInterface,LoggerAwareInterface
{
- // methods
- public void __construct()
- public CacheItemInterface getItem()
- public Traversable getItems()
- public bool hasItem()
- public bool clear()
- public bool deleteItem()
- public bool deleteItems()
- public bool save()
- public bool saveDeferred()
- public bool commit()
- // Inherited methods from LoggerTrait
- public LoggerTrait setLogger()
Hierarchy
Uses
Implements
- Psr\Cache\CacheItemPoolInterface
- Psr\Log\LoggerAwareInterface
Methods
public
- __construct() — Set up the cache backend
- clear() — Deletes all items in the pool.
- commit() — Persists any deferred cache items.
- deleteItem() — Removes the item from the pool.
- deleteItems() — Removes multiple items from the pool.
- getItem() — Returns a Cache Item representing the specified key.
- getItems() — Returns a traversable set of cache items.
- hasItem() — Confirms if the cache contains specified cache item.
- save() — Persists a cache item immediately.
- saveDeferred() — Sets a cache item to be persisted later.
Inherited from Aviat\Banker\LoggerTrait
public
- setLogger() — Set a logger to keep track of errors