Easy Tutorial
❮ Keys Renamenx Connection Ping ❯

Redis Config Set Command

Redis Server

The Redis Config Set command allows dynamic adjustment of Redis server configurations without the need for a restart.

You can use it to modify configuration parameters or change Redis's persistence method.

Syntax

The basic syntax for the redis Config Set command is as follows:

redis 127.0.0.1:6379> CONFIG SET parameter value

Available Versions

= 2.0.0

Return Value

Returns OK when the setting is successful, otherwise returns an error.

Example

redis 127.0.0.1:6379> CONFIG GET slowlog-max-len
1) "slowlog-max-len"
2) "1024"

redis 127.0.0.1:6379> CONFIG SET slowlog-max-len 10086
OK

redis 127.0.0.1:6379> CONFIG GET slowlog-max-len
1) "slowlog-max-len"
2) "10086"

Redis Server

❮ Keys Renamenx Connection Ping ❯