The steps for manipulating AOF are as follows:
- To enable AOF persistence for a running Redis instance, call the CONFIG SET command as follows:
127.0.0.1:6379> CONFIG SET appendonly yes
OK
- If we would like to enable AOF permanently, add appendonly yes to the Redis configuration file and restart the server:
$ cat conf/redis.conf |grep "^appendonly"
appendonly yes
- To disable the AOF persistence feature for a running Redis instance, set appendonly to no:
$ bin/redis-cli config set appendonly no
OK
- To disable AOF persistence permanently, just set appendonly no in the configuration file and restart the server:
$ cat conf/redis.conf |grep "^appendonly"
appendonly no
- To check if the AOF feature is enabled, we can use