Package fr.gouv.vitam.common.metrics

# 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 Summary

  Constructors
  Constructor
  Description
  `PassiveExpiringCache(long cacheDuration, TimeUnit cacheDurationUnit)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `V`
  `get(K key)`
  `void`
  `put(K key, V value)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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)