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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...