If you set the TTL to zero, it won't expire due to time, but I don't know how to stop it from deleting if it needs the space.

Dave Strickler

On Jun 10, 2008, at 10:04 PM, Grant Maxwell <[EMAIL PROTECTED]> wrote:

Hi Folks

My understanding is that items will expire in two fundamental ways; if a TTL was specified on the set or if the cache needs room and deletes old items.

My quesions are:

   Is this understanding fully correct ?
Is there a way to tell the cache that an item should be fully persistent - i.e. don't throw it away for any reason ?

The second question relates to us being able to use the cache as a storage area that only disappears if the daemon stops etc. This would be very useful in our environment where we can cache stuff at start up, share it across multiple processes/networks, and have enormous impact on efficiency. Obviously not specifying a TTL on the set method means it wont expire, but what about the situation where the memcached needs space and deletes the oldest items ?

thanks
Grant

This message has been certified virus-free by MailWise - a real-time, 
intelligent, email security hosted service for controlling inbound and outbound 
email threats including spam, viruses and malware; adhering to legal and 
regulatory compliance requirements; ensuring email continuity, encryption and 
archiving; and minimizing overall email security risks.
For more information, please visit: http://www.mailwise.com

Reply via email to