CacheInterface
Framework-facing cache interface; extends PSR-16 for flexibility.
Synopsis
Section titled “Synopsis”interface CacheInterface extends CacheInterface
| Implements | CacheInterface |
| Implemented by | RecordingCache, StubbedCache |
| Source | Cache/CacheInterface.php |
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
clear() | CacheInterface | Wipes clean the entire cache’s keys. |
delete() | CacheInterface | Delete an item from the cache by its unique key. |
deleteMultiple() | CacheInterface | Deletes multiple cache items in a single operation. |
get() | CacheInterface | Fetches a value from the cache. |
getMultiple() | CacheInterface | Obtains multiple cache items by their unique keys. |
has() | CacheInterface | Determines whether an item is present in the cache. |
set() | CacheInterface | Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. |
setMultiple() | CacheInterface | Persists a set of key => value pairs in the cache, with an optional TTL. |