Redis Config Set command
Redis Config Set command to dynamically adjust the configuration (configuration) Redis server without having to reboot.
You can use it to modify the configuration parameters, or change Redis persistence (Persistence) mode.
grammar
redis Config Set basic command syntax is as follows:
redis 127.0.0.1:6379> CONFIG Set parameter value
Available versions
> = 2.0.0
return value
Back OK when the setup is successful, otherwise it returns an error.
Examples
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"