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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to