DataCache is an interface to a LRU-cached data store used to hold data cached by path

Hierarchy

  • DataCache

Constructors

Methods

  • fetch() retrieves cacheable data from the data cache, first checking the in-memory cache, then the data store (if specified), then resorting to building the data and storing it in the cache.

    Type Parameters

    • Data

    Parameters

    Returns Promise<Data>

Generated using TypeDoc