Class JPPFLRUMapCache<K,V>

java.lang.Object
org.jppf.caching.AbstractJPPFMapCache<K,V>
org.jppf.caching.JPPFLRUMapCache<K,V>
Type Parameters:
K - the type of keys.
V - the type of values.
All Implemented Interfaces:
JPPFMapCache<K,V>

public class JPPFLRUMapCache<K,V> extends AbstractJPPFMapCache<K,V>
A map cache with a LRU eviction policy based on a specified capacity.
Author:
Laurent Cohen
  • Constructor Details

    • JPPFLRUMapCache

      public JPPFLRUMapCache()
      Initialize this cache with an initial capacity of 1024.
    • JPPFLRUMapCache

      public JPPFLRUMapCache(int capacity)
      Initialize this cache with the specified capacity.
      Parameters:
      capacity - the capacity of this cache.
  • Method Details