Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 233 by [email protected]: Enhancement
http://code.google.com/p/memcached/issues/detail?id=233

First off, I'd like to say I love your work. I use Memcached (and the PHP module for it) on my website. but, there are two functions/features missing that I would like to see in a future release:

int Memcached::getExpire(string key)

This will return a signed integer for the expiration of a given key;
zero meaning indefinite and -1 upon failure.

--AND--

bool Memcached::setExpire(string key, int seconds)

this function could be used to modify the expiration of a given key.

if seconds is zero, then the cached resource would be indefinite.

if seconds is positive, then the cached resource would be cached for that amount of time.

if seconds is negative, then the cached resource would subtract it's current expiration by that amount (remaining time <= 0 deletes the resource)

it would return TRUE upon success and FALSE on failure.

Thank you for your consideration.
William "Xyphos" Scott

Reply via email to