|
CacheConfiguration | GetConfiguration () |
| Gets the cache configuration. More...
|
|
bool | IsEmpty () |
| Checks whether this cache contains no key-value mappings. More...
|
|
ICache< TK, TV > | WithSkipStore () |
| Get another cache instance with read-through and write-through behavior disabled. More...
|
|
ICache< TK, TV > | WithExpiryPolicy (IExpiryPolicy plc) |
| Returns cache with the specified expired policy set. This policy will be used for each operation invoked on the returned cache. More...
|
|
ICache< TK1, TV1 > | WithKeepBinary< TK1, TV1 > () |
| Gets cache with KeepBinary mode enabled, changing key and/or value types if necessary. You can only change key/value types when transitioning from non-binary to binary cache; Changing type of binary cache is not allowed and will throw an InvalidOperationException More...
|
|
void | LoadCache (ICacheEntryFilter< TK, TV > p, params object[] args) |
| Executes LocalLoadCache on all cache nodes. More...
|
|
Task | LoadCacheAsync (ICacheEntryFilter< TK, TV > p, params object[] args) |
| Executes LocalLoadCache on all cache nodes. More...
|
|
void | LocalLoadCache (ICacheEntryFilter< TK, TV > p, params object[] args) |
| Delegates to ICacheStore<K, V>.LoadCache method to load state from the underlying persistent storage. The loaded values will then be given to the optionally passed in predicate, and, if the predicate returns true, will be stored in cache. If predicate is null, then all loaded values will be stored in cache. More...
|
|
Task | LocalLoadCacheAsync (ICacheEntryFilter< TK, TV > p, params object[] args) |
| Delegates to ICacheStore<K, V>.LoadCache method to load state from the underlying persistent storage. The loaded values will then be given to the optionally passed in predicate, and, if the predicate returns true, will be stored in cache. If predicate is null, then all loaded values will be stored in cache. More...
|
|
void | LoadAll (IEnumerable< TK > keys, bool replaceExistingValues) |
| Loads the specified entries into the cache using the configured ICacheStore> for the given keys. More...
|
|
Task | LoadAllAsync (IEnumerable< TK > keys, bool replaceExistingValues) |
| Asynchronously loads the specified entries into the cache using the configured ICacheStore> for the given keys. More...
|
|
bool | ContainsKey (TK key) |
| Check if cache contains mapping for this key. More...
|
|
Task< bool > | ContainsKeyAsync (TK key) |
| Check if cache contains mapping for this key. More...
|
|
bool | ContainsKeys (IEnumerable< TK > keys) |
| Check if cache contains mapping for these keys. More...
|
|
Task< bool > | ContainsKeysAsync (IEnumerable< TK > keys) |
| Check if cache contains mapping for these keys. More...
|
|
TV | LocalPeek (TK key, params CachePeekMode[] modes) |
| Peeks at cached value using optional set of peek modes. This method will sequentially iterate over given peek modes, and try to peek at value using each peek mode. Once a non-null value is found, it will be immediately returned. This method does not participate in any transactions, however, it may peek at transactional value depending on the peek modes used. If key is not present in cache, KeyNotFoundException will be thrown. More...
|
|
bool | TryLocalPeek (TK key, out TV value, params CachePeekMode[] modes) |
| Peeks at cached value using optional set of peek modes. This method will sequentially iterate over given peek modes, and try to peek at value using each peek mode. Once a non-null value is found, it will be immediately returned. This method does not participate in any transactions, however, it may peek at transactional value depending on the peek modes used. More...
|
|
TV | Get (TK key) |
| Retrieves value mapped to the specified key from cache. Throws an exception if t More...
|
|
Task< TV > | GetAsync (TK key) |
| Retrieves value mapped to the specified key from cache. Throws an exception if t More...
|
|
bool | TryGet (TK key, out TV value) |
| Retrieves value mapped to the specified key from cache. If the value is not present in cache, then it will be looked up from swap storage. If it's not present in swap, or if swap is disable, and if read-through is allowed, value will be loaded from persistent store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< CacheResult< TV > > | TryGetAsync (TK key) |
| Retrieves value mapped to the specified key from cache. If the value is not present in cache, then it will be looked up from swap storage. If it's not present in swap, or if swap is disable, and if read-through is allowed, value will be loaded from persistent store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
ICollection< ICacheEntry< TK, TV > > | GetAll (IEnumerable< TK > keys) |
| Retrieves values mapped to the specified keys from cache. If some value is not present in cache, then it will be looked up from swap storage. If it's not present in swap, or if swap is disabled, and if read-through is allowed, value will be loaded from persistent store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< ICollection< ICacheEntry< TK, TV > > > | GetAllAsync (IEnumerable< TK > keys) |
| Retrieves values mapped to the specified keys from cache. If some value is not present in cache, then it will be looked up from swap storage. If it's not present in swap, or if swap is disabled, and if read-through is allowed, value will be loaded from persistent store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
void | Put (TK key, TV val) |
| Associates the specified value with the specified key in the cache. More...
|
|
Task | PutAsync (TK key, TV val) |
| Associates the specified value with the specified key in the cache. More...
|
|
CacheResult< TV > | GetAndPut (TK key, TV val) |
| Associates the specified value with the specified key in this cache, returning an existing value if one existed. More...
|
|
Task< CacheResult< TV > > | GetAndPutAsync (TK key, TV val) |
| Associates the specified value with the specified key in this cache, returning an existing value if one existed. More...
|
|
CacheResult< TV > | GetAndReplace (TK key, TV val) |
| Atomically replaces the value for a given key if and only if there is a value currently mapped by the key. More...
|
|
Task< CacheResult< TV > > | GetAndReplaceAsync (TK key, TV val) |
| Atomically replaces the value for a given key if and only if there is a value currently mapped by the key. More...
|
|
CacheResult< TV > | GetAndRemove (TK key) |
| Atomically removes the entry for a key only if currently mapped to some value. More...
|
|
Task< CacheResult< TV > > | GetAndRemoveAsync (TK key) |
| Atomically removes the entry for a key only if currently mapped to some value. More...
|
|
bool | PutIfAbsent (TK key, TV val) |
| Atomically associates the specified key with the given value if it is not already associated with a value. More...
|
|
Task< bool > | PutIfAbsentAsync (TK key, TV val) |
| Atomically associates the specified key with the given value if it is not already associated with a value. More...
|
|
CacheResult< TV > | GetAndPutIfAbsent (TK key, TV val) |
| Stores given key-value pair in cache only if cache had no previous mapping for it. If cache previously contained value for the given key, then this value is returned. In case of PARTITIONED or REPLICATED caches, the value will be loaded from the primary node, which in its turn may load the value from the swap storage, and consecutively, if it's not in swap, from the underlying persistent storage. If the returned value is not needed, method putxIfAbsent() should be used instead of this one to avoid the overhead associated with returning of the previous value. If write-through is enabled, the stored value will be persisted to store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< CacheResult< TV > > | GetAndPutIfAbsentAsync (TK key, TV val) |
| Stores given key-value pair in cache only if cache had no previous mapping for it. If cache previously contained value for the given key, then this value is returned. In case of PARTITIONED or REPLICATED caches, the value will be loaded from the primary node, which in its turn may load the value from the swap storage, and consecutively, if it's not in swap, from the underlying persistent storage. If the returned value is not needed, method putxIfAbsent() should be used instead of this one to avoid the overhead associated with returning of the previous value. If write-through is enabled, the stored value will be persisted to store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
bool | Replace (TK key, TV val) |
| Stores given key-value pair in cache only if there is a previous mapping for it. If cache previously contained value for the given key, then this value is returned. In case of PARTITIONED or REPLICATED caches, the value will be loaded from the primary node, which in its turn may load the value from the swap storage, and consecutively, if it's not in swap, rom the underlying persistent storage. If write-through is enabled, the stored value will be persisted to store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< bool > | ReplaceAsync (TK key, TV val) |
| Stores given key-value pair in cache only if there is a previous mapping for it. If cache previously contained value for the given key, then this value is returned. In case of PARTITIONED or REPLICATED caches, the value will be loaded from the primary node, which in its turn may load the value from the swap storage, and consecutively, if it's not in swap, rom the underlying persistent storage. If write-through is enabled, the stored value will be persisted to store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
bool | Replace (TK key, TV oldVal, TV newVal) |
| Stores given key-value pair in cache only if only if the previous value is equal to the old value passed as argument. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< bool > | ReplaceAsync (TK key, TV oldVal, TV newVal) |
| Stores given key-value pair in cache only if only if the previous value is equal to the old value passed as argument. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
void | PutAll (IEnumerable< KeyValuePair< TK, TV >> vals) |
| Stores given key-value pairs in cache. If write-through is enabled, the stored values will be persisted to store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task | PutAllAsync (IEnumerable< KeyValuePair< TK, TV >> vals) |
| Stores given key-value pairs in cache. If write-through is enabled, the stored values will be persisted to store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
void | LocalEvict (IEnumerable< TK > keys) |
| Attempts to evict all entries associated with keys. Note, that entry will be evicted only if it's not used (not participating in any locks or transactions). More...
|
|
void | Clear () |
| Clears the contents of the cache, without notifying listeners or CacheWriters. More...
|
|
Task | ClearAsync () |
| Clears the contents of the cache, without notifying listeners or CacheWriters. More...
|
|
void | Clear (TK key) |
| Clear entry from the cache and swap storage, without notifying listeners or CacheWriters. Entry is cleared only if it is not currently locked, and is not participating in a transaction. More...
|
|
Task | ClearAsync (TK key) |
| Clear entry from the cache and swap storage, without notifying listeners or CacheWriters. Entry is cleared only if it is not currently locked, and is not participating in a transaction. More...
|
|
void | ClearAll (IEnumerable< TK > keys) |
| Clear entries from the cache and swap storage, without notifying listeners or CacheWriters. Entry is cleared only if it is not currently locked, and is not participating in a transaction. More...
|
|
Task | ClearAllAsync (IEnumerable< TK > keys) |
| Clear entries from the cache and swap storage, without notifying listeners or CacheWriters. Entry is cleared only if it is not currently locked, and is not participating in a transaction. More...
|
|
void | LocalClear (TK key) |
| Clear entry from the cache and swap storage, without notifying listeners or CacheWriters. Entry is cleared only if it is not currently locked, and is not participating in a transaction. More...
|
|
void | LocalClearAll (IEnumerable< TK > keys) |
| Clear entries from the cache and swap storage, without notifying listeners or CacheWriters. Entry is cleared only if it is not currently locked, and is not participating in a transaction. More...
|
|
bool | Remove (TK key) |
| Removes given key mapping from cache. If cache previously contained value for the given key, then this value is returned. In case of PARTITIONED or REPLICATED caches, the value will be loaded from the primary node, which in its turn may load the value from the disk-based swap storage, and consecutively, if it's not in swap, from the underlying persistent storage. If the returned value is not needed, method removex() should always be used instead of this one to avoid the overhead associated with returning of the previous value. If write-through is enabled, the value will be removed from store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< bool > | RemoveAsync (TK key) |
| Removes given key mapping from cache. If cache previously contained value for the given key, then this value is returned. In case of PARTITIONED or REPLICATED caches, the value will be loaded from the primary node, which in its turn may load the value from the disk-based swap storage, and consecutively, if it's not in swap, from the underlying persistent storage. If the returned value is not needed, method removex() should always be used instead of this one to avoid the overhead associated with returning of the previous value. If write-through is enabled, the value will be removed from store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
bool | Remove (TK key, TV val) |
| Removes given key mapping from cache if one exists and value is equal to the passed in value. If write-through is enabled, the value will be removed from store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task< bool > | RemoveAsync (TK key, TV val) |
| Removes given key mapping from cache if one exists and value is equal to the passed in value. If write-through is enabled, the value will be removed from store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
void | RemoveAll (IEnumerable< TK > keys) |
| Removes given key mappings from cache. If write-through is enabled, the value will be removed from store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
Task | RemoveAllAsync (IEnumerable< TK > keys) |
| Removes given key mappings from cache. If write-through is enabled, the value will be removed from store. This method is transactional and will enlist the entry into ongoing transaction if there is one. More...
|
|
void | RemoveAll () |
| Removes all mappings from cache. If write-through is enabled, the value will be removed from store. This method is not transactional. More...
|
|
Task | RemoveAllAsync () |
| Removes all mappings from cache. If write-through is enabled, the value will be removed from store. This method is not transactional. More...
|
|
int | GetLocalSize (params CachePeekMode[] modes) |
| Gets the number of all entries cached on this node. More...
|
|
int | GetSize (params CachePeekMode[] modes) |
| Gets the number of all entries cached across all nodes. More...
|
|
Task< int > | GetSizeAsync (params CachePeekMode[] modes) |
| Gets the number of all entries cached across all nodes. More...
|
|
IQueryCursor< ICacheEntry< TK, TV > > | Query (QueryBase qry) |
| Queries cache. More...
|
|
IQueryCursor< IList > | QueryFields (SqlFieldsQuery qry) |
| Queries separate entry fields. More...
|
|
IContinuousQueryHandle | QueryContinuous (ContinuousQuery< TK, TV > qry) |
| Start continuous query execution. More...
|
|
IContinuousQueryHandle< ICacheEntry< TK, TV > > | QueryContinuous (ContinuousQuery< TK, TV > qry, QueryBase initialQry) |
| Start continuous query execution. More...
|
|
IEnumerable< ICacheEntry< TK, TV > > | GetLocalEntries (params CachePeekMode[] peekModes) |
| Get local cache entries. More...
|
|
TRes | Invoke< TArg, TRes > (TK key, ICacheEntryProcessor< TK, TV, TArg, TRes > processor, TArg arg) |
| Invokes an ICacheEntryProcessor<K, V, A, R> against the IMutableCacheEntry<K, V> specified by the provided key. If an entry does not exist for the specified key, an attempt is made to load it (if a loader is configured) or a surrogate entry, consisting of the key with a null value is used instead. More...
|
|
Task< TRes > | InvokeAsync< TArg, TRes > (TK key, ICacheEntryProcessor< TK, TV, TArg, TRes > processor, TArg arg) |
| Invokes an ICacheEntryProcessor<K, V, A, R> against the IMutableCacheEntry<K, V> specified by the provided key. If an entry does not exist for the specified key, an attempt is made to load it (if a loader is configured) or a surrogate entry, consisting of the key with a null value is used instead. More...
|
|
ICollection< ICacheEntryProcessorResult< TK, TRes > > | InvokeAll< TArg, TRes > (IEnumerable< TK > keys, ICacheEntryProcessor< TK, TV, TArg, TRes > processor, TArg arg) |
| Invokes an ICacheEntryProcessor<K, V, A, R> against a set of keys. If an entry does not exist for the specified key, an attempt is made to load it (if a loader is configured) or a surrogate entry, consisting of the key with a null value is used instead. More...
|
|
Task< ICollection< ICacheEntryProcessorResult< TK, TRes > > > | InvokeAllAsync< TArg, TRes > (IEnumerable< TK > keys, ICacheEntryProcessor< TK, TV, TArg, TRes > processor, TArg arg) |
| Invokes an ICacheEntryProcessor<K, V, A, R> against a set of keys. If an entry does not exist for the specified key, an attempt is made to load it (if a loader is configured) or a surrogate entry, consisting of the key with a null value is used instead. More...
|
|
ICacheLock | Lock (TK key) |
| Creates an ICacheLock instance associated with passed key. This method does not acquire lock immediately, you have to call appropriate method on returned instance. More...
|
|
ICacheLock | LockAll (IEnumerable< TK > keys) |
| Creates an ICacheLock instance associated with passed keys. This method does not acquire lock immediately, you have to call appropriate method on returned instance. More...
|
|
bool | IsLocalLocked (TK key, bool byCurrentThread) |
| Checks if specified key is locked. More...
|
|
ICacheMetrics | GetMetrics () |
| Gets global (whole cluster) snapshot metrics (statistics) for this cache. More...
|
|
ICacheMetrics | GetMetrics (IClusterGroup clusterGroup) |
| Gets global (whole cluster group) snapshot metrics (statistics) for this cache. More...
|
|
ICacheMetrics | GetLocalMetrics () |
| Gets local snapshot metrics (statistics) for this cache. More...
|
|
Task | Rebalance () |
| Rebalances cache partitions. This method is usually used when rebalanceDelay configuration parameter has non-zero value. When many nodes are started or stopped almost concurrently, it is more efficient to delay rebalancing until the node topology is stable to make sure that no redundant re-partitioning happens. More...
|
|
ICache< TK, TV > | WithNoRetries () |
| Get another cache instance with no-retries behavior enabled. More...
|
|
ICache< TK, TV > | WithPartitionRecover () |
| Gets an instance of cache that will be allowed to execute cache operations (read, write) regardless of partition loss policy. More...
|
|
ICollection< int > | GetLostPartitions () |
| Gets lost partitions IDs. More...
|
|