[patch] specify entries not subject to LRU at write time
paul-lists at perforge.com
Mon Mar 26 03:18:18 UTC 2007
i've put together a small patch (in fact, most of it is autoconf stuff) to
allow writing 'permanent' items which won't be subject to LRU replacement.
this is useful (i think) if you want to guarantee that some data survives
either until its expiration or until the server/machine it's on dies. while
this is obviously doable with the appropriate command line switch, this
patch allows it to be specified on a per item basis and changed at any time,
meaning you can store them in the same memory pressured memcached instance
you're hammering with everything else.
testing and comments from memcached hackers wrt what i've subtly broken with
this would be most welcome. please note, while it works in my tests (such
as they are), i *don't* guarantee that it won't eat your children or sleep
with your wife ;)
apply diff, autoconf + autoheader, then
(i've tried to make it as simple to try out as possible, admittedly so i can
get some testing and comments on it).
for other options and a few short notes on the why/what/how, check the
you can grab it here:
More information about the memcached