Package org.apache.cassandra.cache
Interface ICache<K,V>
-
- All Superinterfaces:
CacheSize
- All Known Implementing Classes:
CaffeineCache,SerializingCache
public interface ICache<K,V> extends CacheSize
This is similar to the Map interface, but requires maintaining a given capacity and does not require put or remove to return values, which lets SerializingCache be more efficient by avoiding deserialize except on get.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()booleancontainsKey(K key)Vget(K key)java.util.Iterator<K>hotKeyIterator(int n)java.util.Iterator<K>keyIterator()voidput(K key, V value)booleanputIfAbsent(K key, V value)voidremove(K key)booleanreplace(K key, V old, V value)-
Methods inherited from interface org.apache.cassandra.cache.CacheSize
capacity, setCapacity, size, weightedSize
-
-