Class Cache<T>

Type Parameters

  • T

Constructors

Properties

entries: number = 0
evictionTime: number = 20000
gcPeriod: number = 30000
map: Map<string, CacheEntry<T>> = ...
maxEntries: number = 100000
method: ((key) => Promise<T>) = ...

Type declaration

    • (key): Promise<T>
    • Parameters

      • key: string

      Returns Promise<T>

timer: any
ttl: number = 10000

Methods