Function cacheKey

  • Cache the given value in the supplied key if the key doesn't already exist.

    Type Parameters

    • T

    Parameters

    • key: string

      The key to store.

    • generator: (() => T)
        • (): T
        • Returns T

    Returns T

Generated using TypeDoc