Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4134

Make Cache.evict() a cluster-wide operation

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 6.0.2.Final
    • Eviction
    • 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(...)

      Attachments

        Activity

          People

            Unassigned Unassigned
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: