It'd better to store values in Memcache than in local memory because you are
not guaranteed which application instance a request will go to. Memcache can
be accessed by any instance, not just the originating one. You're not
guaranteed session affinity.

On Fri, Jan 22, 2010 at 7:02 AM, Andrei <[email protected]> wrote:

> Why would it be better than to keep values in servlet static
> variables?
>
> On Jan 22, 9:36 am, Tchijov Andrei <[email protected]> wrote:
> > It depends on you app workload. I could be wrong, but if your app gets
> "swapped out", then memcache is gone.
> >
> > In general, it is bad idea to have ANY assumptions about how long values
> will stay in cache.
> >
> > On Jan 22, 2010, at 09:33 , Andrei wrote:
> >
> > > How reasonably long can i expect value to survive in memcache
> > > If i set it to expire in a week, what are the probability it will be
> > > there, 99%, 50%, something else?
> > > Thnaks
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "Google App Engine" group.
> > > To post to this group, send email to [email protected]
> .
> > > To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> > > For more options, visit this group athttp://
> groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to