FileCache

FileCache class

Represents a local on-disk cache.

public class FileCache : ICache

Constructors

Name Description
FileCache(string) Creates new instance of FileCache class.
FileCache(string, string) Creates new instance of FileCache class.

Properties

Name Description
CachePath { get; } The Relative or absolute path to the cache folder.
CacheSubFolder { get; } The sub-folder to append to the CachePath.

Methods

Name Description
GetKeys(string) Returns all file names that contains filter in filename.
Set(string, object) Serializes data to the local disk.
TryGetValue<T>(string, out T) Deserializes data associated with this key if present.

See Also