Class CacheStorage
Inheritance
Namespace: Telerik.Reporting.Cache
Assembly: Telerik.Reporting.dll
Syntax
public class CacheStorage : IStorage
Constructors
CacheStorage(ICache)
Initializes a new instance of the Cache
Declaration
public CacheStorage(ICache cache)
Parameters
ICache
cache
The target cache instance which will contain the stored values. |
Methods
AcquireLock(String)
Acquires a lock on a named resource.
Declaration
public IDisposable AcquireLock(string key)
Parameters
System. The name of the lock. |
Returns
System. A disposable lock object. |
Implements
Remarks
Implements the Acquire
AcquireReadLock(String)
Acquires a lock on a named resource.
Declaration
public IDisposable AcquireReadLock(string key)
Parameters
System.
|
Returns
System.
|
Implements
AddInSet(String, String)
Adds a single string value to a set of values denoted from the given key.
Declaration
public void AddInSet(string key, string value)
Parameters
System. The key that denotes the stored set value. |
System. The value that is added to the set. |
Implements
Remarks
Implements the Add
Delete(String)
Deletes a key with its value (string or byte array) from the storage.
Declaration
public void Delete(string key)
Parameters
System. The key that denotes the stored value that should be removed. |
Implements
Remarks
Implements the Delete(String) interface member.
DeleteInSet(String, String)
Deletes a single string value from a set of values denoted from the given key.
Declaration
public bool DeleteInSet(string key, string value)
Parameters
System. The key that denotes the stored set value. |
System. The value that should be deleted from the given set. |
Returns
System. True if set with the given key is found and it contained the given value before deleted. Otherwise false. |
Implements
Remarks
Implements the Delete
DeleteSet(String)
Deletes set of values denoted by the given key.
Declaration
public void DeleteSet(string key)
Parameters
System. The key that denotes the stored set. |
Implements
Remarks
Implements the Delete
Exists(String)
Retrieves a value indicating if a single value (string or byte array) exists in the storage.
Declaration
public bool Exists(string key)
Parameters
System. The key that denotes the stored value. |
Returns
System. True if the key with its value exists in the storage, otherwise false. |
Implements
Remarks
Implements the Exists(String) interface member.
ExistsInSet(String, String)
Retrieves a value indicating if a set of values exists in the storage.
Declaration
public bool ExistsInSet(string key, string value)
Parameters
System. The key that denotes the stored set value. |
System.
|
Returns
System. True if the key with its value exists in the storage, otherwise false. |
Implements
Remarks
Implements the Exists
GetAllMembersInSet(String)
Retrieves all members in a set of string values.
Declaration
public IEnumerable<string> GetAllMembersInSet(string key)
Parameters
System. The key that denotes the stored set value. |
Returns
System. An enumerable retrieving each value of the set denoted from the given key. |
Implements
Remarks
Implements the Get
GetBytes(String)
Retrieves a byte array value stored under particular key.
Declaration
public byte[] GetBytes(string key)
Parameters
System. The key that denotes the stored byte array value. |
Returns
System. The byte array value stored under the given key. If no such key is found, null (Nothing). |
Implements
Remarks
Implements the Get
GetCountInSet(String)
Retrieves the count of the values in a set value stored in the storage.
Declaration
public long GetCountInSet(string key)
Parameters
System. The key that denotes the stored set value. |
Returns
System. The count of the values in the set. If no such set exists, zero. |
Implements
Remarks
Implements the Get
GetString(String)
Retrieves a string value stored under particular key.
Declaration
public string GetString(string key)
Parameters
System. The key that denotes the stored string value. |
Returns
System. The string value stored under the given key. If no such key is found, null (Nothing). |
Implements
Remarks
Implements the Get
SetBytes(String, Byte[])
Stores a byte array value under particular key.
Declaration
public void SetBytes(string key, byte[] value)
Parameters
System. The key that denotes the stored byte array value. |
System. The value that is stored. |
Implements
Remarks
Implements the Set
SetString(String, String)
Stores a string value under particular key.
Declaration
public void SetString(string key, string value)
Parameters
System. The key that denotes the stored string value. |
System. The value that is stored. |
Implements
Remarks
Implements the Set