Class NearCache<K,V,T>
java.lang.Object
org.gridgain.internal.table.nearcache.NearCache<K,V,T>
- All Implemented Interfaces:
Closeable,AutoCloseable
Near Cache.
-
Constructor Summary
ConstructorsConstructorDescriptionNearCache(NearCacheEntriesProvider<K, V, T> entriesProvider, org.apache.ignite.table.NearCacheOptions options) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getAllAsync(Collection<K> keys) Get values associated with given keys.Get the value by the key asynchronously.voidInvalidate all entries in the cache.
-
Constructor Details
-
NearCache
public NearCache(NearCacheEntriesProvider<K, V, T> entriesProvider, org.apache.ignite.table.NearCacheOptions options) Constructor.- Parameters:
entriesProvider- Entries provider.options- Options.
-
-
Method Details
-
getAsync
Get the value by the key asynchronously.- Parameters:
key- Key.- Returns:
- Value if exists and null otherwise.
-
getAllAsync
Get values associated with given keys.- Parameters:
keys- Keys.- Returns:
- Values associated with given keys. If a requested key does not exist, it will have no corresponding entry in the returned map.
-
invalidateAll
public void invalidateAll()Invalidate all entries in the cache. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
valueType
-