$ttl
$ttl : integer
Global time-to-live
Memcached cache adapter class
setTtl(integer $ttl) : \Pop\Cache\Adapter\AbstractAdapter
Set the global time-to-live for the cache adapter
integer | $ttl |
saveItem(string $id, mixed $value, integer $ttl = null) : \Pop\Cache\Adapter\Memcached
Save an item to cache
string | $id | |
mixed | $value | |
integer | $ttl |
deleteItem(string $id) : \Pop\Cache\Adapter\Memcached
Delete a value in cache
string | $id |
clear() : \Pop\Cache\Adapter\Memcached
Clear all stored values from cache
destroy() : \Pop\Cache\Adapter\Memcached
Destroy cache resource
addServer(string $host, integer $port = 11211, integer $weight = 1) : \Pop\Cache\Adapter\Memcached
Get the current version of memcached.
string | $host | |
integer | $port | |
integer | $weight |
addServers(array $servers) : \Pop\Cache\Adapter\Memcached
Get the current version of memcached.
array | $servers |