public interface ICache<K,V>
Modifier and Type | Method and Description |
---|---|
long |
capacity() |
void |
clear() |
boolean |
containsKey(K key) |
V |
get(K key) |
java.util.Iterator<K> |
hotKeyIterator(int n) |
java.util.Iterator<K> |
keyIterator() |
void |
put(K key,
V value) |
boolean |
putIfAbsent(K key,
V value) |
void |
remove(K key) |
boolean |
replace(K key,
V old,
V value) |
void |
setCapacity(long capacity) |
int |
size() |
long |
weightedSize() |
long capacity()
void setCapacity(long capacity)
void remove(K key)
int size()
long weightedSize()
void clear()
java.util.Iterator<K> keyIterator()
java.util.Iterator<K> hotKeyIterator(int n)
boolean containsKey(K key)
Copyright © 2016 The Apache Software Foundation