Class TimedCache<K,V>

java.lang.Object
flexagon.ff.common.core.utils.TimedCache<K,V>
Type Parameters:
K -
V -

public class TimedCache<K,V> extends Object
Wrapper for HashMap with simple timeout based expiry.
  • Constructor Details

    • TimedCache

      public TimedCache(long expiryMillis)
  • Method Details

    • get

      public V get(K key)
    • remove

      public void remove(K key)
    • put

      public void put(K key, V value)
    • clear

      public void clear()