Closed necrophonic closed 10 years ago
Done.
$cache->set('key', 'value', ttl);
$cache->set('key', 'value', ttl, sub { });
my $ttl = $cache->ttl('key');
$cache->ttl('key', sub { my $ttl = shift });
The ttl
method returns the remaining TTL, not the original TTL.
It's emulated on Memcached backends - first need to set get_ttl_support, e.g.
$cache->backend->get_ttl_support(1);
Need to be able to do:
Desirable