Class FileSystemCache
Represents the FileSystemCacheStorage class.
Inherited Members
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class FileSystemCache : FileCacheBase, ICacheStorage
Constructors
FileSystemCache()
Initializes a new instance of the FileSystemCache class.
Declaration
public FileSystemCache()
FileSystemCache(String)
Initializes a new instance of the FileSystemCache class.
Declaration
public FileSystemCache(string cachePath)
Parameters
System.String
cachePath
Cache path. |
Methods
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. |