Class PrefixKeyTransformerProxy
A proxy class that converts cache keys by adding a prefix to the key.
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 PrefixKeyTransformerProxy : KeyTransformerProxy, ICacheStoreProxy, ICacheStore, IBaseStore
Constructors
PrefixKeyTransformerProxy()
Initializes a new PrefixKeyTransformerProxy instance.
Declaration
public PrefixKeyTransformerProxy()
PrefixKeyTransformerProxy(String, ICacheStore)
Initializes the PrefixKeyTransformerProxy new instance with the specified cache and the prefix that is added to the keys.
Declaration
public PrefixKeyTransformerProxy(string prefix, ICacheStore store)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix | The prefix that is added to the keys. |
ICacheStore | store | The cache that the proxy class operates with. |
Methods
Initialize(IDictionary<String, String>)
Initializes proxy class properties with the passed parameters.
Declaration
public override void Initialize(IDictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | parameters | Parameters for initialization. |
Overrides
TransformKey(String)
Declaration
protected override string TransformKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.String |