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.String
cachePath
Path to the cached files. |
System.IO.IsolatedStorage.IsolatedStorageFile
isolatedStorageFile
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.String
fileName
File name. |
Returns
System.IO.Stream
Stream. |
Overrides
GetFiles(String, String)
Obtains file names according to mask.
Declaration
protected override string[] GetFiles(string cachePath, string fileMask)
Parameters
System.String
cachePath
Path. |
System.String
fileMask
File mask. |
Returns
System.String[]
File list. |
Overrides
LoadFileMetadata(String)
Loads file metadata.
Declaration
protected override MemoryCache.ICacheRecordMetadata LoadFileMetadata(string fileName)
Parameters
System.String
fileName
File name. |
Returns
MemoryCache.ICacheRecordMetadata
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.String
oldValue
Old value. |
System.String
newValue
New value. |
Overrides
OpenCacheStream(String)
Returns stream to the file name.
Declaration
protected override Stream OpenCacheStream(string fileName)
Parameters
System.String
fileName
File name. |
Returns
System.IO.Stream
Stream. |
Overrides
RemoveFile(String)
Removes file by name.
Declaration
protected override void RemoveFile(string fileName)
Parameters
System.String
fileName
File name. |
Overrides
SaveFileMetadata(MemoryCache.ICacheRecordMetadata)
Saves file metadata.
Declaration
protected override void SaveFileMetadata(MemoryCache.ICacheRecordMetadata cacheRecord)
Parameters
MemoryCache.ICacheRecordMetadata
cacheRecord
Cache record metadata. |