Hi Ajeet, you could also simply invoke memcached with the -M option. This way it will not retire elements unless you force-retire them. Memcached will simply report an error when you get memory overflow. Have a look at my post on memcached as a distributed RAM disk two days ago.
Cheers, Alex
