$lifetime
$lifetime : integer
Cache lifetime
Memcached cache adapter class
__construct(integer $lifetime, string $host = 'localhost', integer $port = 11211) : \Pop\Cache\Adapter\Memcached
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\Memcached
Save a value to cache.
string | $id | |
mixed | $value |
remove(string $id) : \Pop\Cache\Adapter\Memcached
Remove a value in cache.
string | $id |
clear() : \Pop\Cache\Adapter\Memcached
Clear all stored values from cache.