Class
IsolatedStorageCache

Represents the IsolatedCacheStorage class.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

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

Inheritance: objectMemoryCacheFileCacheBaseIsolatedStorageCache

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

IsolatedStorageCache()

Initializes a new instance of the IsolatedStorageCache class.

Declaration

cs-api-definition
public IsolatedStorageCache()

IsolatedStorageCache(string, IsolatedStorageFile)

Initializes a new instance of the IsolatedStorageCache class.

Declaration

cs-api-definition
public IsolatedStorageCache(string cachePath, IsolatedStorageFile isolatedStorageFile)

Parameters

cachePath

string

Path to the cached files.

isolatedStorageFile

IsolatedStorageFile

IsolatedStorageFile instance.

Methods

Clear()

Clears all files in the cache.

Declaration

cs-api-definition
public void Clear()

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
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
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
protected override void SaveFileMetadata(MemoryCache.ICacheRecordMetadata cacheRecord)

Parameters

cacheRecord

MemoryCache.ICacheRecordMetadata

Cache record metadata.

Overrides FileCacheBase.SaveFileMetadata(MemoryCache.ICacheRecordMetadata)