Class CaffeineCache<K extends IMeasurableMemory,​V extends IMeasurableMemory>

  • All Implemented Interfaces:
    CacheSize, ICache<K,​V>

    public class CaffeineCache<K extends IMeasurableMemory,​V extends IMeasurableMemory>
    extends java.lang.Object
    implements ICache<K,​V>
    An adapter from a Caffeine cache to the ICache interface. This provides an on-heap cache using the W-TinyLFU eviction policy (http://arxiv.org/pdf/1512.00727.pdf), which has a higher hit rate than an LRU.