redis-cli CONFIG REWRITE

Category: Databases & SQL

redis-cli CONFIG REWRITE

Persist runtime config to redis.conf

Writes the current effective configuration back to the config file, locking in CONFIG SET changes across restarts. Only parameters that differ from defaults are saved. Requires a writable config file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.