CONFIG REWRITE

Since 1.1.0Server

Syntax

CONFIG REWRITE

Writes the current settings to the configuration file the server was started with, /etc/kividb/kividb.conf by default, creating it and its directory if needed. The file is replaced in one step, through a temporary file, and keeps its mode and, when run as root, its owner; a new file is made 0600. Redis resets the mode to 0644, less the umask, instead.

Examples

> CONFIG SET maxmemory 2mb
OK
> CONFIG REWRITE
OK