Hi all,

I'm trying to implement Memcache but without success so far. I have
difficulties finding examples containing fully working code so I tried
to construct based on what I could find. Here's the code to get a
reference to the cache:

cache= CacheManager.getInstance().getCache("fourturemark");
if (cache == null) {
cache =
CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
CacheManager.getInstance().registerCache("fourturemark", cache);

}


If I'm right, this code should return the cache in case it already
exists. However, based on performance, I see that data stored in cache
is reloaded from resource instead of cache.


Any idea what I'm doing wrong here?


BR,
Lennart

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