>From the document, I found this is how my application obtain the
cache:
cache = cacheFactory.createCache(Collections.emptyMap());

        try {
            cache =
CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
        } catch (CacheException e) {
            // ...
        }

That means that when my JVM started, it try to create a cache
associate with an empty map.

I have read some guys wrote that the cache will be globally available.
Mean that if my app started from JVM#1, JVM#2, then they can read and
write on the same memcache.

Well, it just doesn't make sense to me when I look at the above code.

Does it make sense to you? If it does, then how would you explain the
Collections.emptyMap() passed as an argument to createCache?

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

Reply via email to