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

ICacheStorage

Interface

Represents the CacheStorage interface.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public interface ICacheStorage

Derived Classes: FileCacheBaseFileSystemCacheIsolatedStorageCacheMemoryCache

Methods

Loads file from a cache.

C#
Stream Load(string fileName)
Parameters:fileNamestring

File name.

Returns:

Stream

Stream or null if the file is absent.

Loads file from a cache.

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

File name.

callbackAction<byte[]>

Callback which should be called to return tile if it is available or null.

Saves file to a cache.

C#
void Save(string fileName, DateTime expirationDate, byte[] tile)
Parameters:fileNamestring

File name.

expirationDateDateTime

DateTime of expires.

tilebyte[]

Byte array which is saved to the file.