ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <dhsc...@cstone.dhs.state.il.us>
Subject RE: iBATIS and SwarmCache
Date Mon, 07 Mar 2005 21:03:36 GMT
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

>>> arafiq@carreker.com 3/7/2005 2:52:28 PM >>>
Are you referring to the Developer's Guide? From what I gather, the
model uses a pluggable framework for supporting different "types" of
(e.g. LRU, Memory, FIFO, etc.), but it does not talk about integrating
other caching products besides OSCache.

View raw message