Redis Persistence Storage

Other topics

Disable all persistence storage in Redis

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.

Get persistence storage status

The following code will get the current configuration for the persistent storage state. These values can be modified dynamically, so they may differ from the configuration in redis.conf:

# get
config get appendonly
config get save

Contributors

Topic Id: 7871

Example Ids: 25580,25581

This site is not affiliated with any of the contributors.