Interface ICacheStore
Cache storage interface.
Inherited Members
Namespace: Terrasoft.Core.Store
Assembly: Terrasoft.Core.dll
Syntax
public interface ICacheStore : IBaseStore
Remarks
Data in a cache store can be removed at any time without any warning. Therefore it only should be used for performance optimization. Application logic must not rely on presence of any data in a cache storage. Use IDataStore).
Properties
IsLocalCache
Indicates that data is stored in local application memory.
Declaration
bool IsLocalCache { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetValues(IEnumerable<String>)
Provides a way to obtain a key-value map of cached items by the list of keys.
Declaration
IDictionary<string, object> GetValues(IEnumerable<string> keys)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | keys | Cached items keys. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | A key-value map of cached data for provided set of keys.
Wherever values is not found, |