[jboss-user] [JBossCache] - Re: EvictionPolicyConfig and CacheLoaderConfiguration

manik.surtani@jboss.com do-not-reply at jboss.com
Fri Jun 8 06:32:41 EDT 2007


Your test is flawed.  When something is evicted from memory, it no longer exists in memory but still exists in the cache loader.  So when you do a cache.get() the cache sees that the data is not in memory and then proceeds to check if it is in the cache loader (which it is) and then loads data from there.

Change the test to check cache.exists() rather than cache.get().  cache.exists will bypass cache loaders.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052501#4052501

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052501



More information about the jboss-user mailing list