mix ferricstore.config (ferricstore v0.4.0)

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).

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

set

Sets a configuration field for a namespace prefix.

Valid fields:

  • window_ms -- commit window in milliseconds (positive integer)

Examples:

mix ferricstore.config set rate window_ms 10

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]