Details
-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
6.0.2.Final
-
None
Description
Personally, I have never fully understood why Cache.evict() is a local-only operation.
If a user wants to perform a cluster-wide evict, they need to implement their own RPC mechanism in order to perform the eviction on each node. Within WildFly, there are at least 2 use cases for such an operation.
Why not instead make Cache.evict() a cluster-wide operation? The existing (i.e. local-only) behavior can always achieved via:
AdvancedCache.withFlags(Flag.CACHE_MODE_LOCAL).evict(...)