New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public interface IMapCacheProvider

Derived Classes: LocalFileCacheProviderMemoryCacheProvider

Methods

Retrieves a file from the cache.

C#
Stream Load(string key)
Parameters:keystring

The name of the file to retrieve from the cache.

Returns:

Stream

Stream or null if the file does not exist.

Retrieves a file from the cache asynchronously.

C#
void LoadAsync(string key, Action<string, byte[]> callback)
Parameters:keystring

The name of the file to retrieve from the cache.

callbackAction<string, byte[]>

Callback which should be called to return the file.

Stores a file to the cache.

C#
void Save(string key, DateTime expirationDate, byte[] content)
Parameters:keystring

The name of the file to store in the cache.

expirationDateDateTime

The date after which the cache for the file is considered expired.

contentbyte[]

The content of the file as byte array.