If you use OSCache, you could implement a listener that logs what you need. I went down this road a while back, and from what I remember, iBATIS doesn't really expose any of the cache details other than a flush() method.
On Fri, 2006-09-22 at 17:35 -0400, Zhao, Qintao (Contractor) wrote: > All, > > I have a requirement to monitor the cache size used by a cache model. > Say I have the following cache model defined in a SqlMap, > > <cacheModel id="MDC_PRFL-cache" type="LRU" readOnly="true" > serialize="false"> > <flushInterval hours="168" /> > <property name="cache-size" value="2000" /> > </cacheModel> > > I would like to know the actual size used by cache during runtime. > Could someone help me out ? We want to make sure the cache is > big enough to hold all cached objects in the future. > > thanks a lot, > > Qintao >