Class
FileSystemCache

Represents the FileSystemCacheStorage class.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class FileSystemCache : FileCacheBase, ICacheStorage

Inheritance: objectMemoryCacheFileCacheBaseFileSystemCache

Implements: ICacheStorage

Inherited Members FileCacheBase.CachePathPropertyFileCacheBase.MaxSizePropertyFileCacheBase.MinExpirationTimePropertyFileCacheBase.MaxExpirationTimePropertyFileCacheBase.Load(string)FileCacheBase.LoadAsync(string, Action<byte[]>)FileCacheBase.Save(string, DateTime, byte[])FileCacheBase.GetFullFilePath(string)FileCacheBase.OnMaxSizeChanged()FileCacheBase.Dispose()FileCacheBase.CachePathFileCacheBase.MaxSizeFileCacheBase.MinExpirationTimeFileCacheBase.MaxExpirationTimeMemoryCache.MemoryMaxSizePropertyMemoryCache.GetTile(string)MemoryCache.GetCacheRecord(string)MemoryCache.AddToCacheRecords(MemoryCache.CacheRecord)MemoryCache.MemoryMaxSize

Constructors

FileSystemCache()

Initializes a new instance of the FileSystemCache class.

Declaration

cs-api-definition
public FileSystemCache()

FileSystemCache(string)

Initializes a new instance of the FileSystemCache class.

Declaration

cs-api-definition
public FileSystemCache(string cachePath)

Parameters

cachePath

string

Cache path.

Methods

CreateCacheStream(string)

Creates a stream.

Declaration

cs-api-definition
protected override Stream CreateCacheStream(string fileName)

Parameters

fileName

string

File name.

Returns

Stream

Stream.

Overrides FileCacheBase.CreateCacheStream(string)

GetFiles(string, string)

Obtains file names according to mask.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected override string[] GetFiles(string cachePath, string fileMask)

Parameters

cachePath

string

Path.

fileMask

string

File mask.

Returns

string[]

File list.

Overrides FileCacheBase.GetFiles(string, string)

LoadFileMetadata(string)

Loads file metadata.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected override MemoryCache.ICacheRecordMetadata LoadFileMetadata(string fileName)

Parameters

fileName

string

File name.

Returns

MemoryCache.ICacheRecordMetadata

ICacheRecordMetadata implementation instance.

Overrides FileCacheBase.LoadFileMetadata(string)

OnCachePathChanged(string, string)

Calls when the CachePath property is changed.

Declaration

cs-api-definition
protected override void OnCachePathChanged(string oldValue, string newValue)

Parameters

oldValue

string

Old value.

newValue

string

New value.

Overrides FileCacheBase.OnCachePathChanged(string, string)

OpenCacheStream(string)

Returns stream to the file name.

Declaration

cs-api-definition
protected override Stream OpenCacheStream(string fileName)

Parameters

fileName

string

File name.

Returns

Stream

Stream.

Overrides FileCacheBase.OpenCacheStream(string)

RemoveFile(string)

Removes file by name.

Declaration

cs-api-definition
protected override void RemoveFile(string fileName)

Parameters

fileName

string

File name.

Overrides FileCacheBase.RemoveFile(string)

SaveFileMetadata(ICacheRecordMetadata)

Saves file metadata.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected override void SaveFileMetadata(MemoryCache.ICacheRecordMetadata cacheRecord)

Parameters

cacheRecord

MemoryCache.ICacheRecordMetadata

Cache record metadata.

Overrides FileCacheBase.SaveFileMetadata(MemoryCache.ICacheRecordMetadata)