1 Reply Latest reply on Aug 24, 2009 9:49 AM by manik

    Clarification: Evict vs Remove

    keith.zantow

      I've read the API and documentation but can't quite figure out a clear indicator when to use Cache.evict(node, recursive) vs Cache.removeNode(node). They both look similar in the CacheInvocationDelegate on the surface. What's the difference between those two methods - does removeNode(node) issue invalidation messages in ASYNC mode? Is one more efficient than the other?

      Thanks.

        • 1. Re: Clarification: Evict vs Remove
          manik

          Remove removes stuff in cache loaders as well. Evict just evicts from memory. Also, evict will fail (no-op) if someone else has a lock on the node. Remove will wait for lockAcquisitionTimeout millis to try and acquire the lock and succeed before failing.