ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yusuf" <Yu...@ekalife.co.id>
Subject Cache
Date Mon, 20 Feb 2006 01:44:15 GMT
Hi,
I was wondering about the cache feature in ibatis, i hope this isnt a
stupid question:

	<cacheModel id="cache.references" type="LRU" readOnly="true"
		serialize="false">
		<flushInterval hours="8" />
		<property name="cache-size" value="100" />
	</cacheModel>

	<select id="selectTest" resultClass="map"
cacheModel="cache.references">
		select * from dual
	</select>

I have a cache setting like above, but if i use log4j to log the query,
it seems that it always query again to database.. is there something
wrong with my config?

Thanks,
Yusuf S.


Mime
View raw message