Interface NearCache<K,V>
-
- All Superinterfaces:
Iterable<Map.Entry<K,MetadataValue<V>>>
- All Known Implementing Classes:
NearCacheService
public interface NearCache<K,V> extends Iterable<Map.Entry<K,MetadataValue<V>>>
Near cache contract.- Since:
- 7.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()MetadataValue<V>get(K key)voidput(K key, MetadataValue<V> value)voidputIfAbsent(K key, MetadataValue<V> value)booleanremove(K key)intsize()-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
put
void put(K key, MetadataValue<V> value)
-
putIfAbsent
void putIfAbsent(K key, MetadataValue<V> value)
-
remove
boolean remove(K key)
-
get
MetadataValue<V> get(K key)
-
clear
void clear()
-
size
int size()
-
-