java.lang.Object
org.apache.jackrabbit.oak.plugins.document.persistentCache.CacheMap<K,V>
Type Parameters:
K - the key type
V - the value type

public class CacheMap<K,V> extends Object
A cache map. This map supports re-opening the store if this is needed.

Note that a failure to open the underlying store will be handled gracefully, in that the CacheMap can be constructed, but will not actually cache anything. The same is true for the case where the underlying store starts to fail and can not be re-opened.

  • Constructor Details

    • CacheMap

      public CacheMap(MapFactory factory, String name, org.h2.mvstore.MVMap.Builder<K,V> builder)
  • Method Details

    • put

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

      public V get(Object key)
    • containsKey

      public boolean containsKey(Object key)
    • remove

      public V remove(Object key)
    • clear

      public void clear()