General-purpose cache interface.

This is used by the SDK to cache feature flags and other data. The SDK does not assume any particular implementation of the cache, so you can provide your own.

Hierarchy

  • Cache

Methods

Methods

  • The close method offers a way to clean up any resources used by the cache on shutdown.

    Returns void

  • Get a value from the cache. Returning undefined means the key was not found.

    Parameters

    • key: string

    Returns any

  • Set a value in the cache.

    Parameters

    • key: string
    • value: any

    Returns void

Generated using TypeDoc