$adapter
$adapter : \Pop\Cache\Adapter\AdapterInterface
Cache adapter
Cache class
$adapter : \Pop\Cache\Adapter\AdapterInterface
Cache adapter
__construct(\Pop\Cache\Adapter\AdapterInterface $adapter)
Constructor
Instantiate the cache object
\Pop\Cache\Adapter\AdapterInterface | $adapter |
saveItem(string $id, mixed $value, integer $ttl = null) : \Pop\Cache\Cache
Save an item to cache
string | $id | |
mixed | $value | |
integer | $ttl |
saveItems(array $items) : \Pop\Cache\Cache
Save items to cache
array | $items |
deleteItem(string $id) : \Pop\Cache\Cache
Delete an item in cache
string | $id |
deleteItems(array $ids) : \Pop\Cache\Cache
Delete items in cache
array | $ids |
clear() : \Pop\Cache\Cache
Clear all stored values from cache
destroy() : \Pop\Cache\Cache
Destroy cache resource