Method |
Description |
|
__construct ( Pop\Cache\Adapter\AdapterInterface $adapter, integer $lifetime ) : Cache |
Constructor |
|
adapter ( ) : mixed |
Method to get the adapter |
|
clear ( ) : void |
Method to clear all stored values from cache. |
|
factory ( Pop\Cache\Adapter\AdapterInterface $adapter, integer $lifetime ) : Cache |
Static method to instantiate the cache object and return itself
to facilitate chaining methods together. |
|
getAdapters ( ) : array |
Static method to determine available adapters |
|
getLifetime ( ) : integer |
Method to get the cache lifetime. |
|
load ( string $id ) : mixed |
Method to load a value from cache. |
|
remove ( string $id ) : void |
Method to delete a value in cache. |
|
save ( string $id, mixed $value ) : void |
Method to save a value to cache. |
|
setLifetime ( integer $time ) : Cache |
Method to set the cache lifetime. |
|