redis_config_set
Set a Redis config parameter with automatic undo, dry-run preview, and protection against settings that could lock you out.
Instructions
[WRITE][risk=medium] Set one redis config parameter; reversible.
Reads the parameter first (CONFIG GET) so the harness records an undo that restores its prior value. Runtime-only — not persisted to the config file. Pass dry_run=True to preview.
Refuses the parameters that would lock this tool out of the instance (requirepass, masterauth, bind, port, protected-mode, maxclients, unixsocket, aclfile, tls-*) — the undo could never be replayed over a connection those settings break. Change those in redis.conf and restart. The refusal applies under dry_run too: a preview whose real call would be refused must report that, not a green 'wouldSet'.
Args: parameter: Config parameter name (e.g. maxmemory-policy), from redis_config_get. value: New value. dry_run: If True, preview without changing. target: redis target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| target | No | ||
| dry_run | No | ||
| parameter | Yes |