CacheStorageInterface
interface CacheStorageInterface (View source)
Class CacheStorageInterface
Methods
Here we pass in a cache key to be fetched from the cache.
getItems
Method to determine whether a storage entry has been set for a key.
This will wipe out the entire cache's keys
Remove an item from the cache by its unique key
Removes multiple items from the pool.
Persisting our data in the cache, uniquely referenced by a key with an optional expiration TTL time.
Sets a cache item to be persisted later.
Persists any deferred cache items.
Details
at line line 28
CacheItemInterface
getItem(string $key)
Here we pass in a cache key to be fetched from the cache.
A CacheItem object will be constructed and returned to us
at line line 39
Traversable
getItems(array $keys)
getItems
at line line 48
boolean
hasItem(string $key)
Method to determine whether a storage entry has been set for a key.
at line line 55
CacheStorageInterface
clear()
This will wipe out the entire cache's keys
at line line 64
CacheStorageInterface
deleteItem(string $key)
Remove an item from the cache by its unique key
at line line 73
CacheStorageInterface
deleteItems(array $keys)
Removes multiple items from the pool.
at line line 82
CacheStorageInterface
save(CacheItemInterface $item)
Persisting our data in the cache, uniquely referenced by a key with an optional expiration TTL time.
at line line 93
bool
saveDeferred(CacheItemInterface $item)
Sets a cache item to be persisted later.
at line line 101
bool
commit()
Persists any deferred cache items.