Class PassiveExpiringCache<K,V>

java.lang.Object
fr.gouv.vitam.common.metrics.PassiveExpiringCache<K,V>

@ThreadSafe public final class PassiveExpiringCache<K,V> extends Object
PassiveExpiringMap-like cache implementation with Vitam LocalDate (simplifies time-based unit tests)
  • Constructor Details

    • PassiveExpiringCache

      public PassiveExpiringCache(long cacheDuration, TimeUnit cacheDurationUnit)
  • Method Details

    • put

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

      public V get(K key)