New to Telerik ReportingStart a free 30-day trial

ICache

Interface

Provides a mechanism for managing the internal cache used by the reporting engine and the viewers.

Definition

Namespace:Telerik.Reporting.Cache.Interfaces

Assembly:Telerik.Reporting.dll

Syntax:

C#
public interface ICache

Methods

Clears all values and their corresponding keys from the cache.

C#
void Clear()

Retrieves the value with the specified key from the cache.

C#
byte[] GetValue(string key)
Parameters:keystring

Specifies the key used to identify the value in the cache.

Returns:

byte[]

The value with the specified key, or null if no such value exists.

Determines if a value with the specified key exists in the cache.

C#
bool HasValue(string key)
Parameters:keystring

Specifies the key used to identify the value in the cache.

Returns:

bool

True - if a value with the specified key exists, False - otherwise.

Stores the specified value with the given key in the cache.

C#
void SetValue(string key, byte[] value)
Parameters:keystring

Specifies the key used to identify the value in the cache.

valuebyte[]

Specifies the value to store in the cache with the given key.