0 Replies Latest reply on Sep 21, 2011 11:01 AM by bertrand.guiral

    how recover an object after evict (Distributed mode)

    bertrand.guiral

          String myKey = "myKey";

          cache.put(myKey, "value for test" );

          cache.evict(myKey);

          Object myObjectRecovered = cache.get(myKey);

       

      In this case , myObjectRecovered is null .

      It is inside other cache, but i cannot get it from where it has been evicted.

      It is not the behaviour expected :

      evict :

      " Evicts an entry from the memory of the cache.  Note that the entry is not  removed from any configured cache"

      It is right. But how recover it from the cache where the object has been evicted ?