Aviat\Banker\Teller
Implements PSR-16 (SimpleCache)
Synopsis
class Teller
implements
CacheInterface,LoggerAwareInterface
{
- // methods
- public void __construct()
- public mixed get()
- public bool set()
- public bool delete()
- public bool clear()
- public iterable getMultiple()
- public bool setMultiple()
- public bool deleteMultiple()
- public bool has()
- // Inherited methods from LoggerTrait
- public LoggerTrait setLogger()
Hierarchy
Uses
Implements
- Psr\SimpleCache\CacheInterface
- Psr\Log\LoggerAwareInterface
Methods
public
- __construct() — Set up the cache backend
- clear() — Wipes clean the entire cache's keys.
- delete() — Delete an item from the cache by its unique key.
- deleteMultiple() — Deletes multiple cache items in a single operation.
- get() — Fetches a value from the cache.
- getMultiple() — Obtains multiple cache items by their unique keys.
- has() — Determines whether an item is present in the cache.
- set() — Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
- setMultiple() — Persists a set of key => value pairs in the cache, with an optional TTL.
Inherited from Aviat\Banker\LoggerTrait
public
- setLogger() — Set a logger to keep track of errors