Just to be clear, this is already happening after 1 minute. Should I fill in
an expiration date? Documentation says that if no default is given, cache is
heald in memory as long as possible. Amount of data in cache is limited
also...

BRL

On 5 November 2010 16:31, alesj <ales.jus...@gmail.com> wrote:

> http://code.google.com/appengine/docs/java/memcache/overview.html
>
> >> Values can expire from the memcache at any time, and may be expired
> prior to the expiration deadline set for the value.
>
> All looks fine, but like it says, cached value can go away at any
> time.
> Which is probably what's happening in your case.
>
> On Nov 5, 1:45 pm, Lennart Benoot <lennart.ben...@gmail.com> wrote:
> > 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
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@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.

Reply via email to