$adapter
$adapter : \Pop\Cache\Adapter\AdapterInterface
Cache adapter
Cache class
$adapter : \Pop\Cache\Adapter\AdapterInterface
Cache adapter
__construct(\Pop\Cache\Adapter\AdapterInterface $adapter) : \Pop\Cache\Cache
Constructor
Instantiate the cache object
\Pop\Cache\Adapter\AdapterInterface | $adapter |
setAdapter(\Pop\Cache\Adapter\AdapterInterface $adapter) : \Pop\Cache\Cache
Set the adapter
\Pop\Cache\Adapter\AdapterInterface | $adapter |
save(string $id, mixed $value) : \Pop\Cache\Cache
Save a value to cache.
string | $id | |
mixed | $value |
remove(string $id) : \Pop\Cache\Cache
Remove a value in cache.
string | $id |
clear(boolean $del = false) : \Pop\Cache\Cache
Clear all stored values from cache.
boolean | $del |