CONFIG SET parameter value

    The CONFIG SET command is used in order to reconfigure the server at run time without the need to restart Redis. You can change both trivial parameters or switch from one to another persistence option using this command.

    The list of configuration parameters supported by can be obtained issuing a command, that is the symmetrical command used to obtain information about the configuration of a running Redis instance.

    All the supported parameters have the same meaning of the equivalent configuration parameter used in the redis.conf file, with the following important differences:

    For instance what in redis.conf looks like:

    It is possible to switch persistence from RDB snapshotting to append-only file (and the other way around) using the command. For more information about how to do that please check the persistence page.

    In general what you should know is that setting the appendonly parameter to yes will start a background process to save the initial append-only file (obtained from the in memory data set), and will append all the subsequent commands on the append-only file, thus obtaining exactly the same effect of a Redis server that started with AOF turned on since the start.

    : when the configuration was set properly. Otherwise an error is returned.