From: Christian M. <vc...@cl...> - 2002-07-25 15:57:49
|
You rock ;) There is something that could be considered as a future upgrade. Atm each persistent class will have its own region cache, it might be usefull to be able to put more than one persistent class in a region cache. We could specify the following in the cache interface: public void setClass(String regionName) throws CacheException; then if the user use the optional argument 'region' in the <jcs-cache>: <jcs-cache usage="read-only" region="Test1"/> then in the RootClass.java, if we find the region attribute, call : jcs.setClass( regionName); instead of jcs.setClass( getPersistentClass() ); ----- Original Message ----- From: <Gavin_King/Cirrus%CI...@ci...> To: <hib...@li...> Cc: <vc...@cl...> Sent: Thursday, July 25, 2002 5:09 PM Subject: JCS integration > Christian Meunier got me started with some code to integrate Apache > Tubine's JCS today. I ended up rewriting much of the Cache package and > making some big improvements. Anyway, you may now specify a JCS cache in > the mapping file using > > <jcs-cache usage="read-only"/> > > or > > <jcs-cache usage="read-write"/> > > You must then configure the cache in the resource /cache.ccf > > I will deprecate the old homegrown cache soon. > > JCS supports things like in-memory LRU caching, disk-caching, distributed > caching, etc but be careful of using a distributed cache with usage > ="read-write". That probably wont work. > > All in CVS.... > > |