@launchdarkly/cloudflare-server-sdk - v2.7.48
    Preparing search index...

    Interface Cache

    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.

    interface Cache {
        close(): void;
        get(key: string): any;
        set(key: string, value: any): void;
    }
    Index
    • 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