Interface IMapCacheProvider
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public interface IMapCacheProvider
Methods
Load(String)
Retrieves a file from the cache.
Declaration
Stream Load(string key)
Parameters
System.String
key
The name of the file to retrieve from the cache. |
Returns
System.IO.Stream
Stream or null if the file does not exist. |
LoadAsync(String, Action<String, Byte[]>)
Retrieves a file from the cache asynchronously.
Declaration
void LoadAsync(string key, Action<string, byte[]> callback)
Parameters
System.String
key
The name of the file to retrieve from the cache. |
System.Action<System.String, System.Byte[]>
callback
Callback which should be called to return the file. |
Save(String, DateTime, Byte[])
Stores a file to the cache.
Declaration
void Save(string key, DateTime expirationDate, byte[] content)
Parameters
System.String
key
The name of the file to store in the cache. |
System.DateTime
expirationDate
The date after which the cache for the file is considered expired. |
System.Byte[]
content
The content of the file as byte array. |