Context cache the context peer may use to store intermediate data.

There is only one cache instance exists per context.

Hierarchy

  • Cache

Methods

Methods

  • Obtains a value previously cached under the given key.

    Parameters

    • key: unknown

      Cached value key.

    Returns unknown

    Either cached value, or undefined if the value did not cached.

  • Caches the value under the given key.

    Parameters

    • key: unknown

      Cached value key.

    • value: unknown

      A value to cache.

    • supply: Supply

      Value supply. The value will be removed from cache once this supply cut off.

    Returns void

Generated using TypeDoc