commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <sma...@lfjr.net>
Subject Re: commons cache
Date Mon, 19 Jul 2004 14:28:35 GMT
Aaron Smuts wrote:

> Can I see the API so I can get a better feel for what
> you have in mind?

The API is attached to the previous message I linked:

http://nagoya.apache.org/eyebrowse/GetAttachment?listName=commons-dev@jakarta.apache.org&msgId=1228418&attachId=1

(it's not the latest version, this one still sits on my computer with 
SwarmCache and EHCache support, and unit tests)

The API consists basically in Map decorators combined with a factory 
derived from commons-logging.

Example:

Cache cache = CacheFactory.getCache("region");
cache.put(key, object);
cache.get(key);

The cache implementation is determined by a commons-caching.properties 
file on the classpath.

Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message