Request

Response

    IStorage interface

    An interface for data-cache.

    public interface IStorage
    

    Members

    namedescription
    Add(…) Add cache to the in-memory collection. (2 methods)
    Get<T>(…) To get cache. (2 methods)
    Remove(…) Marks the entry for removal. The value stays in memory and is still returned by Get until Save(key) is called, which deletes the on-disk entry. (2 methods)
    Save(…) Commit a single cache entry to disk: writes the value most recently added under key, or deletes the on-disk entry when the key was passed to Remove. Entries that are added but never saved stay in memory only. Does nothing when the key is not present.

    See Also