Redis CONFIG REWRITE command rewrites the redis.conf file the server was started with, applying minimal changes needed to reflect the configuration currently used by the server. It may be different compared to the original one because of the use of the CONFIG SET command.
String reply – OK, when the configuration is rewritten properly. Otherwise, an error is returned.
Following is the basic syntax of Redis CONFIG REWRITE command.
redis 127.0.0.1:6379> CONFIG REWRITE parameter