Class MemoryMapCacheWithAutomaticCalculation<Records>

Cache implementation that uses a Map to store the data. The values are calculated automatically if not present in the cache.

Type Parameters

  • Records extends Record<string, Some | null> = Record<string, Some | null>

Hierarchy

Implements

Constructors

Properties

cache: Map<keyof Records, Records[keyof Records]> = ...
calculators: {
    [Key in string | number | symbol]: (() => Records[Key])
}

Methods

Generated using TypeDoc