Function cacheFor

  • A crude caching system that will cache values for the given time.

    Type Parameters

    • T

    Parameters

    • options: CacheForOptions

      See CacheForOptions.

    • generator: (() => Promise<T>)

      The promise function that returns the cached value.

        • (): Promise<T>
        • Returns Promise<T>

    Returns Promise<T>

Generated using TypeDoc