3 Replies Latest reply: May 11, 2012 6:48 AM by Galder Zamarreño RSS

is cache.evict() asynchronous?

venkataratnam teki Newbie

Sorry if its a trivial question..

 

I am having a local cache with the following configuration

cacheName = "PojoCache", timeToLive = 100000, idleTime = 100000, maxEntries = 1000, evictionStrategy = EvictionStrategy.LRU, enableJmxStatistics = true)

 

i have a key-value pair of "key1" --> "value1" in the cache..

 

i have done cache.evict("key1"), and immediately cache.get("key1"). ideally, i am supposed to get null, but i am getting "value1" from the cache.

 

Is it expected?