users@jersey.java.net

Re: [Jersey] [Client API] Support for application-local Cache

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 25 Aug 2008 08:53:29 +0200

On Aug 24, 2008, at 5:09 PM, Markus KARG wrote:

> The JRE comes with a default framework for application-local Cache:
> You can write your own cache provider and configure the JRE to use
> it. Nice. So when using the Jersey Client API:
>
> (a) Will it come with a default implementation of an application-
> local Cache?
>
> (b) Will there at least be support for the above-mentioned framework?
>

Can you provide more information/links to the "application-local
Cache" as i do not know what it is. If this cache plugs in to
HttpURLConnection you may be able to use it as the Client API uses
HttpURLConnection underneath.


> Currently I have installed SQUID on my laptop to "simulate"
> application-local cache, but certainly that is a bit like breaking
> a fly on a wheel.
>

Yes.

It is possible to write a cache using the Client filter API, either
application specific like caching JAXB objects in memory (so they do
not need to be repeatedly unmarshalled) or say plug in a general in-
memory cache, perhaps using say Ehcache.

If you need such functionality can you log an issue so we can track/
prioritize.

Thanks,
Paul.