Re: EvictableEntry.isCached() state meaning

2018-02-15 Thread Alexey Goncharuk
Andrey, isCached() may return false if the entry was concurrently removed from the heap (note that EvictableEntry covers only on-heap evictions since it is passed to the instance of an EvictionPolicy). Any cache access of the entry key (get or update) will bring the entry back on-heap. --AG

EvictableEntry.isCached() state meaning

2018-02-08 Thread Andrey Kuznetsov
Hi Igniters! I can't comprehend the meaning of the following note in javadoc for EvictableEntry.isCached() method. "If entry is not in cache (e.g. has been removed) {@code false} is returned. In this case all operations on this entry will cause creation of a new entry in cache." That is, if I