Class LRUMap<K,V>

java.lang.Object
org.apache.commons.jcs3.utils.struct.AbstractLRUMap<K,V>
org.apache.commons.jcs3.utils.struct.LRUMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Map<K,V>
Direct Known Subclasses:
BlockDiskKeyStore.LRUMapCountLimited, IndexedDiskCache.LRUMapCountLimited

public class LRUMap<K,V> extends AbstractLRUMap<K,V>
Simple LRUMap implementation that keeps the number of the objects below or equal maxObjects
  • Constructor Details

    • LRUMap

      public LRUMap()
    • LRUMap

      public LRUMap(int maxObjects)
      Parameters:
      maxObjects - maximum number to keep in the map
  • Method Details