|
From: Bill B. <bb...@re...> - 2008-10-10 13:50:05
|
I know JBoss Cache allows you to define domains based on node-path. So it might work. I've pinged Manik on it. Cache-Control is weird though. You may keep something cached for as long as you like, but you have to validate it with the server. It would be really cool if I could find somebody to look into this (and/or the Spring thing too). I've been meaning to do it, but I get stuck writing articles and fixing bugs. TCK work is starting next week too :(. Solomon Duskis wrote: > Bill, > > Yeah, I understand the protocol well enough... The problem is chosing > an cache implementation technology. > > RESTful caching requires per-resource value for "max time to live" > because each URL can have a different value. You'll definitely need a > wrapper object to store ETag info; however, it would be nice to use the > caching technology's expiration/eviction settings rather than having to > build that yourself. > > All of the caching technologies I've seen, except for memcached, have a > per cache setting for "max time to live" (determined by an XML file, or > programmatically). Memcached allows you to set a timeout per cached > instance rather than per cache, but you probably rule out memcached > because a purely distributed cache system seems like a totally wrong > solution for a RESTful client. > > Unless I'm mistaken, you'll have to either modify a caching technology > to allow a per instance timeout (which I assume you can do with your > pull with the JBoss caching team, Bill), or to write a layer on top of > an existing solution that manually checks max-age/Expires values in > order to do expiration. > > -Solomon > > On Wed, Oct 8, 2008 at 4:33 PM, Bill Burke <bb...@re... > <mailto:bb...@re...>> wrote: > > <snip> > > > > As far as the caching client goes: I'm not quite sure which > existing caching solution best fits a RESTful request. > > > Read up on Cache-Control header. Basically the server passes a > response header that states the cache policy. Its a pretty rich > protocol. > > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |