Redis Config Set Command
The Redis Config Set command can dynamically adjust the configuration of the Redis server without restarting.
You can use it to modify configuration parameters or change the Redis persistence method.
Syntax
The basic syntax of the redis Config Set command is as follows:
redis 127.0.0.1:6379> CONFIG Set parameter value
Available Version
= 2.0.0
Return Value
Returns OK on success, or an error otherwise.
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"