public interface IgniteCacheProxy<K,V> extends Iterable<javax.cache.Cache.Entry<K,V>>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the contents of the cache.
|
boolean |
containsKey(K key)
Determines if the
ClientCache contains an entry for the specified key. |
V |
get(K key)
Gets an entry from the cache.
|
Map<K,V> |
getAll(Set<? extends K> keys)
Gets a collection of entries from the Ignite cache, returning them as
Map of the values associated with the set of keys requested. |
void |
put(K key,
V val)
Associates the specified value with the specified key in the cache.
|
void |
putAll(Map<? extends K,? extends V> map)
Copies all of the entries from the specified map to the Ignite cache.
|
<R> QueryCursor<R> |
query(Query<R> qry)
Execute SQL query and get cursor to iterate over results.
|
boolean |
remove(K key)
Removes the mapping for a key from this cache if it is present.
|
void |
removeAll(Set<? extends K> keys)
Removes entries for the specified keys.
|
int |
size(CachePeekMode... peekModes)
Gets the number of all entries cached across all nodes.
|
IgniteCacheProxy<K,V> |
withExpiryPolicy(javax.cache.expiry.ExpiryPolicy expirePlc)
Returns cache with the specified expired policy set.
|
forEach, iterator, spliterator
V get(K key)
key
- the key whose associated value is to be returnedvoid put(K key, V val)
key
- key with which the specified value is to be associatedval
- value to be associated with the specified key.int size(CachePeekMode... peekModes)
peekModes
- Optional peek modes. If not provided, then total cache size is returned.Map<K,V> getAll(Set<? extends K> keys)
Map
of the values associated with the set of keys requested.keys
- The keys whose associated values are to be returned.void putAll(Map<? extends K,? extends V> map)
map
- Mappings to be stored in this cache.boolean remove(K key)
key
- Key whose mapping is to be removed from the cache.void removeAll(Set<? extends K> keys)
keys
- The keys to remove.void clear()
IgniteCacheProxy<K,V> withExpiryPolicy(javax.cache.expiry.ExpiryPolicy expirePlc)
<R> QueryCursor<R> query(Query<R> qry)
qry
- SQL query.boolean containsKey(K key)
ClientCache
contains an entry for the specified key.key
- key whose presence in this cache is to be tested.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024