public interface KeyValueStore<K,V> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
clear all cache.
|
void |
close()
close the store.
|
void |
flush()
flush to disk.
|
V |
get(K key)
get value from store.
|
void |
put(K key,
V value)
put key value into store.
|
void |
remove(K key)
remove key in the store.
|
void put(K key, V value) throws IOException
IOExceptionV get(K key) throws IOException
IOExceptionvoid remove(K key) throws IOException
IOExceptionvoid flush()
throws IOException
IOExceptionvoid clearCache()
void close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.