Interface ICacheStore
A cache store.
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public interface ICacheStore : ICacheLoader
Methods
Erase(object)
Remove the specified key from the underlying store if present.
Declaration
void Erase(object key)
Parameters
Type | Name | Description |
---|---|---|
object | key | Key whose mapping is being removed from the cache. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If this implementation or the underlying store is read-only. |
EraseAll(ICollection)
Remove the specified keys from the underlying store if present.
Declaration
void EraseAll(ICollection keys)
Parameters
Type | Name | Description |
---|---|---|
ICollection | keys | Keys whose mappings are being removed from the cache. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If this implementation or the underlying store is read-only. |
Store(object, object)
Store the specified value under the specified key in the underlying store.
Declaration
void Store(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
object | key | Key to store the value under. |
object | value | Value to be stored. |
Remarks
This method is intended to support both key/value creation and value update for a specific key.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If this implementation or the underlying store is read-only. |
StoreAll(IDictionary)
Store the specified values under the specified keys in the underlying store.
Declaration
void StoreAll(IDictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | dictionary | An IDictionary of any number of keys and values to store. |
Remarks
This method is intended to support both key/value creation and value update for the specified keys.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If this implementation or the underlying store is read-only. |