Class ConcurrentDictionaryAdapter
Inheritance
System.Object
ConcurrentDictionaryAdapter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.Store
Assembly: Terrasoft.Core.dll
Syntax
public class ConcurrentDictionaryAdapter : IBucketedCacheStore, ICacheStore, IBucketedDataStore, IBucketedStore, IDataStore, IBaseStore
Constructors
ConcurrentDictionaryAdapter()
Declaration
public ConcurrentDictionaryAdapter()
Properties
IsLocalCache
Gets the value that indicates whether the data is stored in local memory.
Declaration
public virtual bool IsLocalCache { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[String]
Gets or sets a storage element by the given key.
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Element key. |
Property Value
Type | Description |
---|---|
System.Object | Value in the storage that correspond to the |
Keys
Gets a collection containing the keys.
Declaration
public IEnumerable<string> Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Methods
Clear()
Removes all keys and values from the current dictionary.
Declaration
public void Clear()
GetValues(IEnumerable<String>)
Provides a way to obtain a key-value map of cached items by the list of keys.
Declaration
public 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, |
Initialize(IDictionary<String, String>)
Method does nothing.
Declaration
public void Initialize(IDictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | parameters |
Remove(String)
Removes element in the storage by the key
.
Declaration
public void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Element key. |