Interface ICacheStorage
Represents the CacheStorage interface.
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public interface ICacheStorage
Methods
Load(String)
Loads file from a cache.
Declaration
Stream Load(string fileName)
Parameters
System.String
fileName
File name. |
Returns
System.IO.Stream
Stream or null if the file is absent. |
LoadAsync(String, Action<Byte[]>)
Loads file from a cache.
Declaration
void LoadAsync(string fileName, Action<byte[]> callback)
Parameters
System.String
fileName
File name. |
System.Action<System.Byte[]>
callback
Callback which should be called to return tile if it is available or null. |
Save(String, DateTime, Byte[])
Saves file to a cache.
Declaration
void Save(string fileName, DateTime expirationDate, byte[] tile)
Parameters
System.String
fileName
File name. |
System.DateTime
expirationDate
DateTime of expires. |
System.Byte[]
tile
Byte array which is saved to the file. |