nickvajberg wrote:
No, because the replication can occur anytime when running it ad-hoc (i.e. after some server has been down)
So I think I really need some way to force an update of the caches.
this might not be the best solution but worst comes to worst you can access the underlying cache technology classes. For example, ehcache can export some mbeans. I am not aware what kind of things you can do through them but it is very likely you can manipulate cache regions. In any events, how do you programmatically realize it is time to evict a cache region? Isn't it better to set up a short life span cache region for sensitive data? This is not horrible, depending on uses cases, since db engines usually have a fairly strong cache.
Farzad-