Redis Admin and redis-cli Cheat Sheet/Change a configuration value

Change a config value at runtime.

Section: Server administration

Change a configuration value

bash
bash
CONFIG SET maxmemory 1gb

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Server administration
Read configuration values
Read current server configuration values.
OpenIn sheetbashsame section
Rewrite config file
Persist runtime config changes back to redis.conf where possible.
OpenIn sheetbashsame section
Terminate a client
Disconnect a matching client connection.
OpenIn sheetbashsame section
Pause client processing
Temporarily pause clients for controlled maintenance.
OpenIn sheetbashsame section
Resume paused clients
Resume client processing after a pause.
OpenIn sheetbashsame section
List ACL users
Inspect effective ACL rules.
OpenIn sheetbashsame section