ClassFileSystemCache
Represents the FileSystemCacheStorage class.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class FileSystemCache : FileCacheBase, ICacheStorage
Inheritance: objectMemoryCacheFileCacheBaseFileSystemCache
Implements:
Inherited Members
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
cachePath
Cache path.
Methods
CreateCacheStream(string)
Creates a stream.
GetFiles(string, string)
Obtains file names according to mask.
LoadFileMetadata(string)
Loads file metadata.
Declaration
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected override MemoryCache.ICacheRecordMetadata LoadFileMetadata(string fileName)
Parameters
fileName
File name.
Returns
MemoryCache.ICacheRecordMetadata
ICacheRecordMetadata implementation instance.
Overrides
OnCachePathChanged(string, string)
Calls when the CachePath property is changed.
OpenCacheStream(string)
Returns stream to the file name.
RemoveFile(string)
Removes file by name.
Declaration
protected override void RemoveFile(string fileName)
Parameters
fileName
File name.
Overrides
SaveFileMetadata(ICacheRecordMetadata)
Saves file metadata.
Declaration
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected override void SaveFileMetadata(MemoryCache.ICacheRecordMetadata cacheRecord)
Parameters
cacheRecord
MemoryCache.ICacheRecordMetadata
Cache record metadata.
Overrides