IStorage
Represents a storage object used from the reporting engine to store internal state and cache rendered reports.
Definition
Namespace:Telerik.Reporting.Cache.Interfaces
Assembly:Telerik.Reporting.dll
Syntax:
public interface IStorage
Derived Classes:
Methods
AcquireLock(string)
IDisposable
Acquires a lock on a named resource.
IDisposable AcquireLock(string key)
The name of the lock. When a lock with particular key is acquired, a subsequent call on AcuireLock with the same key should wait until the original lock is released (disposed).
Returns:IDisposable
A disposable lock object. When disposed from the lock object owner, the lock of the used key is released.
Acquires a lock on a named resource and returns a disposable lock object. When the lock object owner disposes it, the lock is released.
AcquireReadLock(string)
IDisposable
Acquires a lock on a named resource for reading, using less-restrictive locking mechanism.
IDisposable AcquireReadLock(string key)
IDisposable
Acquires a lock on a named resource and returns a disposable lock object. When the lock object owner disposes it, the lock is released.
Adds a single string value to a set of values denoted from the given key.
void AddInSet(string key, string value)
The key that denotes the stored set value.
valuestringThe value that is added to the set.
If a set with the given key does not exist in the storage, such set is created and the value is added as its member.
Deletes a key with its value (string or byte array) from the storage.
void Delete(string key)
The key that denotes the stored value that should be removed.
Deletes a single string value from a set of values denoted from the given key.
bool DeleteInSet(string key, string value)
The key that denotes the stored set value.
valuestringThe value that should be deleted from the given set.
Returns:bool
True if set with the given key is found and it contained the given value before deleted. Otherwise false.
Deletes set of values denoted by the given key.
void DeleteSet(string key)
The key that denotes the stored set.
Exists(string)
bool
Retrieves a value indicating if a single value (string or byte array) exists in the storage.
bool Exists(string key)
The key that denotes the stored value.
Returns:bool
True if the key with its value exists in the storage, otherwise false.
Retrieves a value indicating if a set of values exists in the storage.
bool ExistsInSet(string key, string value)
The key that denotes the stored set value.
valuestringThe stored set value.
Returns:bool
True if the key with its value exists in the storage, otherwise false.
GetAllMembersInSet(string)
IEnumerable<string>
Retrieves all members in a set of string values.
IEnumerable<string> GetAllMembersInSet(string key)
The key that denotes the stored set value.
Returns:IEnumerable<string>
An enumerable retrieving each value of the set denoted from the given key.
GetBytes(string)
byte[]
Retrieves a byte array value stored under particular key.
byte[] GetBytes(string key)
The key that denotes the stored byte array value.
Returns:byte[]
The byte array value stored under the given key. If no such key is found, null (Nothing).
Retrieves the count of the values in a set value stored in the storage.
long GetCountInSet(string key)
The key that denotes the stored set value.
Returns:long
The count of the values in the set. If no such set exists, zero.
GetString(string)
string
Retrieves a string value stored under particular key.
string GetString(string key)
The key that denotes the stored string value.
Returns:string
The string value stored under the given key. If no such key is found, null (Nothing).
Stores a byte array value under particular key.
void SetBytes(string key, byte[] value)
The key that denotes the stored byte array value.
valuebyte[]The value that is stored.
Stores a string value under particular key.
void SetString(string key, string value)
The key that denotes the stored string value.
valuestringThe value that is stored.