K
- the key typeV
- the value typepublic class CacheMap<K,V>
extends java.lang.Object
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 and Description |
---|
CacheMap(MapFactory factory,
java.lang.String name,
org.h2.mvstore.MVMap.Builder<K,V> builder) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
V |
get(java.lang.Object key) |
V |
put(K key,
V value) |
V |
remove(java.lang.Object key) |
public CacheMap(MapFactory factory, java.lang.String name, org.h2.mvstore.MVMap.Builder<K,V> builder)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.