Write the running configuration to disk
RedisPersistenceCommand
CONFIG REWRITEWhat it does
Persists changes made at runtime with CONFIG SET to the redis.conf file.
When to use it
When you want runtime changes to survive a restart.
Caution
Overwrites the existing redis.conf file; the file must be defined and writable.