The first paragrach of section Cache Types "The cache model uses a pluggable framework for supporting different types of caches. The implementation is specified in the type attribute of the cacheModel element (as discussed above). The class name specified must be an implementation of the CacheController interface, or one of the four aliases discussed below. Further configuration parameters can be passed to the implementation via the property elements contained within the body of the cacheModel. Currently there are 4 implementations included with the distribution."
Hope that helps, Brandon On Mon, 7 Mar 2005 15:23:28 -0600, Rafiq, Adnan <[EMAIL PROTECTED]> wrote: > Jeff, > > Thanks for the clarification. I think the issue is the Developer's Guide (at > least the version that I downloaded) itself that caused the confusion. When > discussing cache types on page 26, it only talks about Memory, LRU and FIFO. > There is a reference to OSCache URL, but no mention of the OSCacheController > class. Perhaps, that section was inadvertently ommitted? But your > explanation makes perfect sense. > > Thanks, > > - Adnan Rafiq > > -----Original Message----- > From: Jeff Butler [mailto:[EMAIL PROTECTED] > Sent: Monday, March 07, 2005 3:04 PM > To: [email protected] > Subject: RE: iBATIS and SwarmCache > > Yes, the developers guide. iBATIS ships with four different cache > controllers - MEMORY, LRU, FIFO, OSCACHE. If you want to do SwarmCache, > you'll have to write your own class that implements CacheController (and > maybe contribute it back to the community???). > > Here are the basics: > > Write some class that implements CacheController and interacts with > SwarmCache, then specify that class instead of OSCACHE in your > configuration files. You can look at the source for OSCacheController > as an example. > > OSCACHE is just an alias for > com.ibatis.sqlmap.engine.cache.oscache.OSCacheController. You can plug > any class you want into the cacheModel "type" attribute - as long as it > implements CacheController. > > Jeff Butler > > >>> [EMAIL PROTECTED] 3/7/2005 2:52:28 PM >>> > Are you referring to the Developer's Guide? From what I gather, the > cache > model uses a pluggable framework for supporting different "types" of > caches > (e.g. LRU, Memory, FIFO, etc.), but it does not talk about integrating > with > other caching products besides OSCache. > >

