JBoss Community

how recover an object after evict (Distributed mode)

created by Bertrand GUIRAL in JBoss Cache - View the full discussion

    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 ?

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community