[appengine-java] Do I need to re-cache my object after I updated it in the memcache of Google AppEngine?

2010-02-15 Thread opok
Hi all,

I created a bean to be cached in the memcache, when I retrieved it
from the memecache and called some methods on it to update its status,
do I need to re-cache it into memcache?

I guess that memcache used its reference, so I should not need to do
it. But things turn out that I am not correct. I am a little confused.

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Do I need to re-cache my object after I updated it in the memcache of Google AppEngine?

2010-02-15 Thread John Patterson
Yes you need to put it in memcache again.  All instances returned from  
memcache are deserialized copies of the original.


On 15 Feb 2010, at 16:04, opok wrote:


Hi all,

I created a bean to be cached in the memcache, when I retrieved it
from the memecache and called some methods on it to update its status,
do I need to re-cache it into memcache?

I guess that memcache used its reference, so I should not need to do
it. But things turn out that I am not correct. I am a little confused.

--
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 google-appengine-java@googlegroups.com 
.
To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com 
.
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en 
.




--
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.