mix ferricstore.keys (ferricstore v0.3.6)

Copy Markdown View Source

Lists keys stored in FerricStore, with optional glob pattern filtering.

Usage

mix ferricstore.keys [pattern]

Arguments

  • pattern (optional) -- a glob pattern to filter keys. Supports * (match any sequence of characters) and ? (match exactly one character). When omitted, all keys are listed.

Examples

# List all keys
mix ferricstore.keys

# List keys matching a prefix
mix ferricstore.keys "user:*"

# List keys with a single-char wildcard
mix ferricstore.keys "k?"

Output

Prints each matching key on its own line, followed by a summary count.

Summary

Functions

Runs the keys task, listing keys that match the given pattern.

Functions

run(args)

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

Runs the keys task, listing keys that match the given pattern.

Parameters

  • args -- list of command-line arguments. The first element, if present, is treated as a glob pattern.