Redis config command
config set: Dynamically modify parameters, invalid after restart
config set appendonly yes
config set save "90 1 30 10 60 100"
config get: You can view all parameters that can be set using the config set command
config get *
config rewrite: write dynamic commands to redis.conf (only available in redis 2.8 and later)
config rewrite
Notice:
The rewrite of the redis.conf file by the config rewrite command is atomic and consistent: if a rewrite error occurs or the server crashes during the rewrite, the rewrite fails and the original redis.conf file is not modified. If the rewrite is successful, the redis.conf file is the new file after the rewrite.