Configuration struct for a PhoenixFlags instance.
Resolved from three sources (highest priority first):
- Runtime options passed to
start_link/1 - Application environment (
config :my_app, MyApp.SystemConfig, ...) - Compile-time options passed to
use PhoenixFlags
Options
:otp_app(required) — the OTP application to read environment config from:repo(required) — the Ecto repo used for storage:name(required, set automatically) — the module thatuse PhoenixFlags:cache_enabled— cache values in:persistent_term(defaulttrue); disable in tests for Ecto sandbox compatibility:audit— record value changes in the audit table (defaultfalse):actor_fn— 1-arity function resolving the audit actor from a socket/conn:encryptor— module exportingencrypt/1anddecrypt/1, required for:secretflags:refresh_interval— how often (in milliseconds) the cache is reloaded from the database to heal missed cluster notifications (default60_000); set tofalseto disable the periodic refresh
Summary
Functions
Creates a new config struct from the given options.