Interface
ICacheStorage

Represents the CacheStorage interface.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public interface ICacheStorage

Methods

Load(string)

Loads file from a cache.

Declaration

cs-api-definition
Stream Load(string fileName)

Parameters

fileName

string

File name.

Returns

Stream

Stream or null if the file is absent.

LoadAsync(string, Action<byte[]>)

Loads file from a cache.

Declaration

cs-api-definition
void LoadAsync(string fileName, Action<byte[]> callback)

Parameters

fileName

string

File name.

callback

Action<byte[]>

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

Save(string, DateTime, byte[])

Saves file to a cache.

Declaration

cs-api-definition
void Save(string fileName, DateTime expirationDate, byte[] tile)

Parameters

fileName

string

File name.

expirationDate

DateTime

DateTime of expires.

tile

byte[]

Byte array which is saved to the file.