java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
software.amazon.lambda.powertools.idempotency.internal.cache.LRUCache<K,V>
Type Parameters:
K - Type of the keys
V - Types of the values
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>, SequencedMap<K,V>

public class LRUCache<K,V> extends LinkedHashMap<K,V>
Implementation of a simple LRU Cache based on a LinkedHashMap See here.
See Also:
  • Constructor Details

    • LRUCache

      public LRUCache(int capacity)
  • Method Details