As far as I know, cachedump is the only way. The unfortunate downside is that you can only dump one page per slab, according to this <https://lzone.de/blog/How-to%20Dump%20Keys%20from%20Memcache>.
I bet you could get fancy and dump the entire process memory and dig through it yourself... That could be fun. On Fri, Mar 22, 2019 at 11:27 AM nagashe via memcached < [email protected]> wrote: > Hi All, > > I have a `key` which was put in the cache, the database does not have the > key anymore, but since it was in the cache our app gets the value. I want > to know when it would expire before I go in and try to delete it by hand. > What is the recommended way to find the key expiration time after the fact? > We are running 1.4.20 (i know its a few years old). I tried to figure out > by searching on google, some people recommended `stats cachedump <slab-id> > <count>` ( > https://stackoverflow.com/questions/2558706/how-can-i-get-the-expire-time-for-the-particular-item-in-memcached). > I wanted to check here if there is some better or "recommended" way > > Thanks > Nikhil > > -- > > --- > You received this message because you are subscribed to the Google Groups > "memcached" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
