Class IsolatedStorageCache
Represents the IsolatedCacheStorage class.
Inherited Members
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class IsolatedStorageCache : FileCacheBase, ICacheStorage
Constructors
IsolatedStorageCache()
Initializes a new instance of the IsolatedStorageCache class.
Declaration
public IsolatedStorageCache()
IsolatedStorageCache(String, IsolatedStorageFile)
Initializes a new instance of the IsolatedStorageCache class.
Declaration
public IsolatedStorageCache(string cachePath, IsolatedStorageFile isolatedStorageFile)
Parameters
System. Path to the cached files. |
System. IsolatedStorageFile instance. |
Methods
Clear()
Clears all files in the cache.
Declaration
public void Clear()
CreateCacheStream(String)
Creates a stream.
Declaration
protected override Stream CreateCacheStream(string fileName)
Parameters
System. File name. |
Returns
System. Stream. |
Overrides
GetFiles(String, String)
Obtains file names according to mask.
Declaration
protected override string[] GetFiles(string cachePath, string fileMask)
Parameters
System. Path. |
System. File mask. |
Returns
System. File list. |
Overrides
LoadFileMetadata(String)
Loads file metadata.
Declaration
protected override MemoryCache.ICacheRecordMetadata LoadFileMetadata(string fileName)
Parameters
System. File name. |
Returns
Memory ICacheRecordMetadata implementation instance. |
Overrides
OnCachePathChanged(String, String)
Calls when the CachePath property is changed.
Declaration
protected override void OnCachePathChanged(string oldValue, string newValue)
Parameters
System. Old value. |
System. New value. |
Overrides
OpenCacheStream(String)
Returns stream to the file name.
Declaration
protected override Stream OpenCacheStream(string fileName)
Parameters
System. File name. |
Returns
System. Stream. |
Overrides
RemoveFile(String)
Removes file by name.
Declaration
protected override void RemoveFile(string fileName)
Parameters
System. File name. |
Overrides
SaveFileMetadata(MemoryCache.ICacheRecordMetadata)
Saves file metadata.
Declaration
protected override void SaveFileMetadata(MemoryCache.ICacheRecordMetadata cacheRecord)
Parameters
Memory Cache record metadata. |