Class Cache<Holds>

Cache object for data caching

Type Parameters

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

#holds: Holds

Accessors

Methods

  • Returns Promise<void>

  • Fetches an item from the cache if it exists, else null

    Returns

    The item or null if it wasn't found

    Parameters

    • key: string

      Key for the item

    Returns Promise<null | InstanceType<Holds>>

  • Type Parameters

    • T

    Parameters

    • key: string

    Returns Promise<undefined | T>

Generated using TypeDoc