Redis – Server Config rewrite Command

  • Post author:
  • Post category:Redis
  • Post comments:2 Comments

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.

Return Value

String reply – OK, when the configuration is rewritten properly. Otherwise, an error is returned.

Syntax

Following is the basic syntax of Redis CONFIG REWRITE command.

redis 127.0.0.1:6379> CONFIG REWRITE parameter

This Post Has 2 Comments

  1. amb superslot

    Im grateful for the article. Will read on…

Leave a Reply