Actually I don't mean to be misleading.... you do need to think about concurrency for shared objects like static variables. But not the memcache service.

On 4 Feb 2010, at 22:00, Fux wrote:

Hi everyone!

I have a question, are there any good examples of how Memcache should
be used in a real world case?

I mean, where should a cache be created?

If I created a Cache for caching some data used by a servlet, should I
create and store the instance in the servlet context on init or just
make a singleton or what?

Also, will it need to be Synchronized or not?

I am sorry if the question is a fairly newbie-ish but I am fairly new
to Google App Engine and, in general, web development plus I couldn't
really find good code samples...

Just to make it clear... I don't need to know how data should be put/
removed into the cache (I might need to know about synchronization
issues though) but really how to create/destroy a cache, where to
store it and how to make sure it's accessed correctly.

Thanks a lot!

--
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 .


--
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.

Reply via email to