There are two kinds of persistent storage modes in Redis: AOF and RDB. To temporarily disable RDB execute the following commands on the Redis command line:
config set save ""
to temporarily disable AOF execute the following from the Redis command line:
config set appendonly no
The changes will persist until the server is restarted, then the server will revert back to whatever modes are configured in the server's redis.conf file.
The CONFIG REWRITE
command can be used to modify the redis.conf file to reflect any dynamic changes to the configuration.