Complete the code to specify the Redis persistence method that saves snapshots of the dataset at intervals.
redis.conf setting for periodic snapshot saving is [1]
The save directive in Redis config sets intervals for RDB snapshots.
Complete the code to enable the Redis append-only file persistence.
To enable AOF, set appendonly to [1] in redis.conf
Setting appendonly yes enables AOF persistence in Redis.
Fix the error in the command to rewrite the AOF file.
Use the command [1] to rewrite the appendonly.aof file safely.BGREWRITEAOF triggers a background rewrite of the AOF file to reduce its size.
Fill both blanks to complete the Redis config lines for RDB and AOF persistence.
save [1] appendonly [2]
The save 900 1 means save snapshot if 1 change in 900 seconds.
The appendonly yes enables AOF persistence.
Fill all three blanks to complete the Redis config for AOF fsync policy and RDB snapshot interval.
appendonly [1] appendfsync [2] save [3]
Enable AOF with appendonly yes, set fsync every second with appendfsync everysec, and save RDB snapshot every 900 seconds if 1 change with save 900 1.