LRU semantics...

Kevin A. Burton burton at newsmonster.org
Sun Dec 12 17:07:31 PST 2004


I can't seem to find this documented anywhere.

What happens if I want to store more keys/values that memcached can't 
handle?  Does it expire keys based on use as an LRU cache would do?

Google apparently thinks:

>There's an existing debug command, "stats cachedump" (perhaps not 
>documented in the protocol, I don't remember - it's not meant to be 
>stable or official) which allows you to list first N keys in a 
>particular LRU queue (there're about 15 LRU queues, each for a different 
>size class), where N could also be "all of them". This gives you a 
>momentary snapshot. However, it's not a stable command, and 
>its meaning/syntax will change at some point when we redesign the
>  
>
>LRU structure of memcached. 
>
So I guess the answer is yes...

Maybe a FAQ entry?

Kevin

-- 

Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
invite!  Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html

If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!
    
Kevin A. Burton, Location - San Francisco, CA
       AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412



More information about the memcached mailing list