Please, make some method to retrieve TTL of key.
I need this info to avoid dog-pile effect.
In pseudo-code:
x = get(key, ttl)
if ((ttl - current_time) < 5)
{
if (lock(key))
{
set(key, value)
unlock(key);
}
}
Tue, 02/19/2013 - 15:52
kneeoh
Offline
Joined: 02/19/2013
Groups: None
I too, need the ability to grab the ttl from the meta data. I wonder if I can do this with a view...
I too, need the ability to grab the ttl from the meta data. I wonder if I can do this with a view...