Is this the LRU test? (I was looking for it via the FishEye link, but I'm not 
sure if I found the right one.)   If so, the test seems to be using the default 
values for readonly and serialized:

<cacheModel id="lru-account-cache" implementation="LRU">
  <flushInterval minutes="5" />
  <property name="CacheSize" value="2" />
</cacheModel>

The configuration that was giving me the cache misses was readOnly="false" and 
serialize="false".

Eva


From: Gilles Bayon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 13, 2008 1:01 PM
To: user-cs@ibatis.apache.org
Subject: Re: iBATIS read/write non-serialize cache

I have just commit a test on the current trunk and didn't see any problem.

2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Commands.DefaultPreparedCommand - Statement Id: 
[GetLruCachedAccountsViaResultMap] PreparedStatement : [select *        from 
Accounts        order by Account_ID]
2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Configuration.Cache.CacheModel - Cache miss using key 
'2063825476|9223372033937797411'
2008/05/13 20:53:45:SSS [DEBUG] IBatisNet.DataMapper.SqlMapSession - Open 
Connection "29220874" to "Microsoft SQL Server, provider V1.0.5000.0 in 
framework .NET V1.1".
2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Configuration.Cache.CacheModel - Cache object 
'System.Collections.ArrayList' using key '2063825476|9223372033937797411'
2008/05/13 20:53:45:SSS [DEBUG] IBatisNet.DataMapper.SqlMapSession - Close 
Connection "29220874" to "Microsoft SQL Server, provider V1.0.5000.0 in 
framework .NET V1.1".
2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Commands.DefaultPreparedCommand - Statement Id: 
[GetLruCachedAccountsViaResultMap] PreparedStatement : [select *        from 
Accounts        order by Account_ID]
2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Configuration.Cache.CacheModel - Retrieved cached object 
'System.Collections.ArrayList' using key '2063825476|9223372033937797411'
2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Commands.DefaultPreparedCommand - Statement Id: 
[GetLruCachedAccountsViaResultMap] PreparedStatement : [select *        from 
Accounts        order by Account_ID]
2008/05/13 20:53:45:SSS [DEBUG] 
IBatisNet.DataMapper.Configuration.Cache.CacheModel - Retrieved cached object 
'System.Collections.ArrayList' using key '2063825476|9223372033937797411'




--
Cheers,
Gilles

Reply via email to