Request

Response

    Storage class

    File based cache.

    public class Storage : IStorage
    

    Public Members

    namedescription
    Storage() Initializes a new instance of the Storage class. It will initialize with the default path (appdata+Connector) and load all the cache from folders.
    Storage(…) Initializes a new instance of the Storage class. It will initialize with the parameter path and load all the cache from folders. (2 constructors)
    BaseDirectory { get; protected set; } Gets or sets base location for cache.
    virtual Add(…) It will add cache to collection. (2 methods)
    virtual Get<T>(…) It will return the cache as per type. (2 methods)
    virtual Remove(…) It will remove the cache from collection by specified key. (2 methods)
    virtual Save() It will save cache to the folders. default file extension will be .json. if the cached marked as a InMemoryOnly then it will no saved to the folders.

    Protected Members

    namedescription
    virtual Collection { get; set; } Gets or sets collection of cache.
    class StorageDetails Cache details.

    See Also