Used to store flag configurations for use in local evaluations.

Hierarchy

  • InMemoryFlagConfigCache

Implements

Constructors

Methods

  • Clear the cache of all flag keys and configurations.

    Returns Promise<void>

  • Delete a flag key and configuration from the cache.

    Parameters

    • flagKey: string

      The key and configuration to delete.

    Returns Promise<void>

  • Get a flag configuration for the given flag key from the cache.

    Parameters

    • flagKey: string

      the key to get the flag configuration for

    Returns Promise<FlagConfig>

  • Put a flag configuration in the cache, overwriting an existing configuration for the same flag key.

    Parameters

    • flagKey: string

      The flag key for the given flag configuration.

    • flagConfig: FlagConfig

      The flag configuration to store in the cache.

    Returns Promise<void>

  • Put all the flag configurations into the cache, overwriting any existing configurations for the same key, but not clearing the cache completely.

    Parameters

    • flagConfigs: Record<string, FlagConfig>

      The flag keys and configurations to put into the cache.

    Returns Promise<void>