mix ferricstore.config (ferricstore v0.3.3)

Copy Markdown View Source

Manages FerricStore namespace configuration from the command line.

Provides get and set subcommands for reading and writing per-namespace configuration (commit window timing and durability mode).

Usage

mix ferricstore.config get <prefix>
mix ferricstore.config set <prefix> <field> <value>

Subcommands

get

Retrieves the configuration for a namespace prefix. If no explicit override has been set, returns the default configuration.

mix ferricstore.config get rate
# prefix: rate
# window_ms: 1
# durability: quorum

set

Sets a configuration field for a namespace prefix.

Valid fields:

  • window_ms -- commit window in milliseconds (positive integer)
  • durability -- "quorum" or "async"

Examples:

mix ferricstore.config set rate window_ms 10
mix ferricstore.config set session durability async

Summary

Functions

Runs the config task with the given subcommand and arguments.

Functions

run(arg1)

@spec run(list()) :: :ok

Runs the config task with the given subcommand and arguments.

Parameters

  • args -- command-line arguments: ["get", prefix] or ["set", prefix, field, value]