ExLaunchDark.InMemoryAdapter (ex_launch_dark v1.2.4)

View Source

In-memory adapter for feature flags, primarily for testing/local development.

Stores overrides in ETS keyed by LaunchDarkly flag key (string/binary). Do not use in production.

Summary

Types

context()

@type context() :: ExLaunchDark.Adapter.context()

flag_key()

@type flag_key() :: ExLaunchDark.Adapter.flag_key()

Functions

clear_flags()

@spec clear_flags() :: :ok

disable(flag_key)

@spec disable(flag_key()) :: :ok

enable(flag_key)

@spec enable(flag_key()) :: :ok

set_flag_value(flag_key, value)

@spec set_flag_value(flag_key(), boolean()) :: :ok