-
1. Re: Please clarify eviction rules
vblagojevic Jan 3, 2011 10:23 AM (in response to dlmarion)1 of 1 people found this helpfulThanks for your feedback. I clarified some points http://community.jboss.org/wiki/Eviction
To reiterate your specific case. Both were bad assumptions. The memory enhancement is on a roadmap. If I recall correctly this feature is not easy to implement in an efficient way. Both immortal and mortal entries are target of eviction in 4.2. Previsously it was not the case. See eviction wiki for clarification. For question 2, if an entry is expired it will not be persisted at all. Only non-expired evicted entries should be persisted in your use case.
Regards,
Vladimir
-
2. Re: Please clarify eviction rules
dlmarion Jan 3, 2011 11:50 AM (in response to vblagojevic)Thanks for the response. Just to clarify, non-expired entries in the cache are persisted to the cache store during a shutdown?
-
3. Re: Please clarify eviction rules
vblagojevic Jan 3, 2011 1:12 PM (in response to dlmarion)1 of 1 people found this helpfulI don't think there is a special treatment of non-expired entries during shutdown. If you have a backing store your non-expired entries will be there, if you do not have the store then the entries are gone once cache is shutdown.
-
4. Re: Please clarify eviction rules
dlmarion Jan 3, 2011 2:07 PM (in response to vblagojevic)Based on the passivation documentation, when passivation is true, then data in memory is not stored in the cache store. When the cache is shut down and passivation is true, then the data in the cache is lost? I guess I could loop through the keys in the local cache (Cache.keySet()) and call evict for each one before I shutdown the cache......