Expiration question
Jehiah Czebotar
jehiah at gmail.com
Wed Mar 28 17:24:55 UTC 2007
On 3/28/07, Randy Wigginton <krw at nobugz.com> wrote:
> My question was not clear.
>
> An object is being stored to memcache with an expiration time. The
> process that wrote the object is dead/unavailable. Is there any way
> to query memcache with a specific key to determine how much longer
> the object will be available, or if it has already expired?
>
sorry i didn't quite answer the right question then; There is no way
to query memcached to see the expiration time (if any) for a given
key. The closest you can get right now is just to attempt to get the
key, and if it isn't there you can assume that either a) it was never
there, or b) it expired.
I recall this being discussed on the list some time ago, and there was
talk of adding a way to query the expiration time; but i don't recall
ever seeing a patch go out for that
More information about the memcached
mailing list