Complete the code to save the current Redis database state to disk immediately.
redis-cli [1]The SAVE command forces Redis to save the dataset to disk immediately, ensuring data persistence.
Complete the code to enable Redis to save snapshots every 60 seconds if at least 1000 keys changed.
save [1] 1000
The configuration save 60 1000 tells Redis to save a snapshot every 60 seconds if 1000 keys changed, helping persistence.
Fix the error in the command to rewrite the AOF file for persistence.
redis-cli [1]The correct command to rewrite the Append Only File (AOF) in the background is BGREWRITEAOF. It helps maintain persistence efficiently.
Fill both blanks to configure Redis to use AOF persistence and disable RDB preamble in AOF files.
appendonly [1] aof-use-rdb-preamble [2]
Setting appendonly yes enables AOF persistence. Setting aof-use-rdb-preamble no disables RDB preamble in AOF files.
Fill all three blanks to create a Redis configuration snippet that enables AOF, sets fsync policy to every second, and disables RDB snapshots.
appendonly [1] appendfsync [2] save [3]
Enable AOF with appendonly yes, set fsync to every second with appendfsync everysec, and disable RDB snapshots by setting save "".