$lifetime
$lifetime : integer
Cache lifetime
Redis cache adapter class
__construct(integer $lifetime, string $host = 'localhost', integer $port = 6379) : \Pop\Cache\Adapter\Redis
Constructor
Instantiate the memcache cache object
integer | $lifetime | |
string | $host | |
integer | $port |
setLifetime(integer $lifetime) : \Pop\Cache\Adapter\AbstractAdapter
Set the lifetime.
integer | $lifetime |
save(string $id, mixed $value) : \Pop\Cache\Adapter\Redis
Save a value to cache.
string | $id | |
mixed | $value |
remove(string $id) : \Pop\Cache\Adapter\Redis
Remove a value in cache.
string | $id |
clear() : \Pop\Cache\Adapter\Redis
Clear all stored values from cache.