Redis Server: CONFIG SET
CONFIG SET parameter value
Redis CONFIG SET command is used in order to reconfigure the server at run time without the need to restart Redis. Both the trivial parameters or switch from one to another persistence option can be changed using this command.
All the configuration parameters set using this command are immediately loaded by Redis and will take effect starting with the next command executed.
Syntax:
CONFIG SET parameter value
Available since
2.0.0.
Return Value
String reply: OK when the configuration was set properly. Otherwise, an error is returned.
Return Value Type
String
Example: Redis CONFIG SET
redis 127.0.0.1:6379> CONFIG Get "requirePass" "" redis 127.0.0.1:6379> CONFIG Set "requirePass" "pass1" OK
Previous:
CONFIG REWRITE
Next:
CONFIG RESETSTAT
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics