If I load the data of user_x into memory with memcache, how long will this data stay available?
If a user only logs in once a year this data is unnecessary in the memory.
Or am i looking at this the wrong way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
memcached FAQ covers some of this.
When memcached hits its memory limit, it will automatically expire the oldest / least used entries first.
Your cached data may be invalidated at any time because of this. As Dustin pointed out, it may also stay around forever.