Thursday, September 16, 2010

Re: My kingdom for a cache

Hi David,

Most AJAX implementations respect caching headers, then you can let
the browser handle eviction of your data.

http://www.mnot.net/javascript/xmlhttprequest/cache.html has a set of
tests for browsers.

However, if you want to mark something dirty and have the cache pull
it down, then you'll probably need to look into something more
complex.

Dan

On Sep 16, 8:23 am, David Pinn <dp...@byandlarge.net> wrote:
> That would work fine if I was fetching HTML pages, but in fact, I'm
> fetching data - records from a database, if you will - via AJAX.
>
> On Sep 16, 11:36 pm, Sebastian Hoß <m...@shoss.de> wrote:
>
>
>
> > Well there is a browser cache already. Once you've configured your
> > server to send out some cache related headers you get a client-side
> > cache with no further additional work.
>
> > On Thu, Sep 16, 2010 at 2:36 PM, Marcin Zawadzki
>
> > <marcin.zawad...@gmail.com> wrote:
> > > Take a look at this, might help
>
> > >http://turbomanage.wordpress.com/2010/07/12/caching-batching-dispatch...
>
> > > On Thu, Sep 16, 2010 at 2:15 PM, David Pinn <dp...@byandlarge.net> wrote:
>
> > >> I'm looking for a Java class or Java library that will help me
> > >> implement a client-side cache for data fetched from the server. I'm
> > >> thinking of a Map-like structure the contents of which are evicted on
> > >> a least-recently-used basis, or after some predefined duration.
>
> > >> Since it will be embedded in a GWT app (in the client), it doesn't
> > >> have to be thread-safe. Yay! The rub is, of course, that it needs to
> > >> use only those Java classes supported by GWT's JRE Emulation.
>
> > >> Any ideas?
>
> > >> --
> > >> You received this message because you are subscribed to the Google Groups
> > >> "Google Web Toolkit" group.
> > >> To post to this group, send email to google-web-toolkit@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-web-toolkit+unsubscribe@googlegroups.com.
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > Greetings,
> > > Marcin
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment