Hi, I am using such implementation, with 15 mins refresh time, for my application. you can see the implementation here ...
https://code.google.com/p/claymus/source/browse/trunk/src/com/claymus/Localcache.java On Wed, Jun 15, 2011 at 3:37 PM, tempy <[email protected]> wrote: > Didier and J. Ganesan, I'm not talking about memcache. I want > something as simple as a static map with synchronized access, within > which I would cache data. > > Jeff, how would one accomplish that 30 minute timeout, without > threads, timers, etc. I suppose I could keep the time of entry, and > if more than 30 minutes has elapsed then I fall back onto memcache or > the datastore, not pretty but it'll do. And yes what you mention > would be very nice to have. > > On Jun 14, 5:33 pm, "J.Ganesan" <[email protected]> wrote: > > Why not call memcacheService.delete( keyObject ) ? > > > > J.Ganesan > > > > On Jun 14, 8:25 pm, tempy <[email protected]> wrote: > > > > > > > > > > > > > > > > > Hello all, > > > I'm wondering if its possible to design a cache using data in static > > > variables. I have certain pieces of small and unchanging data, such > > > as a banner for the top of the site whose contents might only change > > > every couple of days. This is perfect for storing in a static > > > variable and falling back onto the memcache as necessary. The one > > > thing I don't know how to do is to clear that cache. If I want to > > > update that data, I can clear the memcache, but there's no way that I > > > can think of to clear static data cache, other than to wait until a > > > particular instance goes down, and who knows when that will happen. > > > Any ideas? Thanks! > > -- > 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.
