-
1. Re: startService and evicition
tcherel Feb 1, 2005 7:51 AM (in response to pksoft)
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.
Thomas -
2. Re: startService and evicition
pksoft Feb 1, 2005 10:22 AM (in response to pksoft)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.
Thanks tcherel. -
3. Re: startService and evicition
tcherel Feb 1, 2005 10:35 AM (in response to pksoft)It is not removed from the memory.
You probably need to do something like that:
1) stopService
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).
3) startService.
The other option can also be to create a brand new cache.
Thomas -
4. Re: startService and evicition
pksoft Feb 1, 2005 10:41 AM (in response to pksoft)What do you mean with regular operations to empty the cache???
I am working in Local mode.
Thanks Thomas. -
5. Re: startService and evicition
tcherel Feb 1, 2005 10:58 AM (in response to pksoft)remove methods.