I had some time this afternoon so I repackaged a cache library and checked
it into the sandbox at
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-commons-sandbox/cache.

Don't feel too constrained by this. I'd be more than happy to help make
pretty dramatic changes to this implementation, but I thought it might make
a useful starting point.  It could certainly use some cleanup, but it has
served us pretty well in a production capacity for some time now.

A few comments:

 * The org.apache.commons.cache.Cache interface is probably your best
starting point for understanding what's going on.
org.apache.commons.cache.SimpleCache is the primary implementation of that
interface, and should probably be your next step.

 * A pair of JSP tags for interacting with the cache are included, but are
not part of the build by default (because they introduce some external
dependencies).  See the README.txt file for details.  The use of these tags
is documented in the docs directory.

 * The *.remote package contains the beginnings of a remote cache service
(where a local "proxy" cache simply delegates all store/retrieve requests to
another, real cache server).  The server implementation would be
straightforward (simply expose a network listener for requests) but I
haven't gotten around to it yet.

 * The *.adt classes could (arguably should) be moved to the
commons-collections package if we keep this implementation.

 * See the test classes for some examples of use.  If you poke around and
have questions, I'd be happy to answer.

 - Rod

Reply via email to