public interface CacheImplementationInterface<K,V> extends Map<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
config(Map<String,String> configuration)
Configure the implementation with the given configuration values
|
int |
getCount(K key)
Returns the hit-count on a certain key (if implementable, -1 otherwise).
|
Object |
getLock()
The cache implementation must be somehow thread-safe.
|
int |
maxSize()
Gets the (maximal) size of the cache (if implementable)
|
void |
setMaxSize(int size)
Sets the (maximal) size of the cache (if implementable).
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesvoid setMaxSize(int size)
int maxSize()
int getCount(K key)
void config(Map<String,String> configuration)
Object getLock()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}