I've been observing our production system memcache stats today and noticed that the oldest object in the cache is only 7 minutes old. On our test system, running the same code, the oldest object is over 4 hours old. On our production system, I saw today at least 3 times where the oldest aged object would get up to as high as 33 minutes but then fall back to 1 minute or so. We are using Objectify to set the cache expiration time for our entity objects. These times range from 10 minutes to 2 hours.Are there any known conditions where memcache is cleared due to errors or quotas? (or something else?). Has anyone else seen this behavior?Thanks,Tom
Memcache can empty at any moment. It is not to be used for anything other than cache.
you can do a set in one line and get in the next line and have the value be not found.
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Tom Saulpaugh
Sent: Tuesday, September 25, 2012 3:48 PM
To: google-a...@googlegroups.com
Subject: [google-appengine] Memcache seems to be cleared periodically
I've been observing our production system memcache stats today and noticed that the oldest object in the cache is only 7 minutes old. On our test system, running the same code, the oldest object is over 4 hours old. On our production system, I saw today at least 3 times where the oldest aged object would get up to as high as 33 minutes but then fall back to 1 minute or so. We are using Objectify to set the cache expiration time for our entity objects. These times range from 10 minutes to 2 hours.
Are there any known conditions where memcache is cleared due to errors or quotas? (or something else?). Has anyone else seen this behavior?
Thanks,
Tom
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/E5JL0t2USlIJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
"you can do a set in one line and get in the next line and have the value be not found."
Yes, but when cached data is cleared too often, and too soon, it defeats the purpose of memcaching things.