Please keep in mind that data in memcache can expire any time. So it
is not enough to save data in the memcache once, you have to handle
sequence like all the time:
MyData value = cache.get(key);
if (value == null) {
// retrieve data or do something else
}
// go on with 'value'
So it is a bad idea to keep mutable data in the memcache without
persisting them.
In my opinion the best usage of memcache and session is as it is
desinged.
- memcache for immutable, persisted data to get them faster
- session for data alive during session and specific for that session
and expiring when session ends.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---