If the question is "is cached data removed when stopService/startService are called", the answer is no, the cached data is not removed.
I did experience and issue after a cache "restart", where the LRU policy was not functionning properly (node that were supposed to be evicted where not).
I did not get a chance to see if the fix of http://jira.jboss.com/jira/browse/JBCACHE-38 took care of the issue or not.
when you said the cached data is not removed you mean that is not removed from disk (using cacheLoader), from memory or both.
Because I need to release all the cached data just from memory, so I am calling to evict method. The reason is that I am trying to implement a refresh and I need the memroy completly empty.
It is not removed from the memory.
You probably need to do something like that:
2) empty the cache (you can probly use the regular operation to empty the cache, I suspect that since the cache is stopped, there will be no replciation going on).
The other option can also be to create a brand new cache.
What do you mean with regular operations to empty the cache???
I am working in Local mode.