ClassMemoryCache
Class
A generic map cache storage.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
cs-api-definition
public class MemoryCache : DependencyObject, ICacheStorage
Inheritance: objectMemoryCache
Derived Classes:
Implements:
Constructors
MemoryCache()
Initializes a new instance of the MemoryCache class.
Declaration
cs-api-definition
public MemoryCache()
Fields
MemoryMaxSizeProperty
Identifies the MemoryMaxSize dependency property.
Declaration
cs-api-definition
public static readonly DependencyProperty MemoryMaxSizeProperty
Field Value
DependencyProperty
Properties
MemoryMaxSize
Gets or sets the maximal memory cache size for a storage. This is a dependency property.
Methods
AddToCacheRecords(CacheRecord)
Adds cache record to the memory cache container.
Declaration
cs-api-definition
protected void AddToCacheRecords(MemoryCache.CacheRecord cacheRecord)
Parameters
cacheRecord
Cache record instance.
GetCacheRecord(string)
Gets the CacheRecord.
Declaration
cs-api-definition
protected MemoryCache.CacheRecord GetCacheRecord(string fileName)
Parameters
fileName
File name.
Returns
CacheRecord.
GetTile(string)
Reads tile.
Load(string)
Loads the file from the memory cache.
LoadAsync(string, Action<byte[]>)
Loaded file from a cache.
Save(string, DateTime, byte[])
Saves the file to the memory.