Complete the code to save a snapshot of the Redis database.
redis-cli [1]The SAVE command forces Redis to create a snapshot of the database immediately.
Complete the code to trigger a background save of the Redis database.
redis-cli [1]The BGSAVE command tells Redis to save the database in the background without blocking clients.
Fix the error in the command to check the last save time of Redis.
redis-cli [1]The correct command to check the last successful save time is LASTSAVE.
Fill both blanks to configure Redis to save a snapshot every 5 minutes if at least 100 keys changed.
save [1] [2]
The configuration save 300 100 means Redis saves a snapshot every 300 seconds (5 minutes) if at least 100 keys changed.
Fill all three blanks to create a Redis configuration line that saves a snapshot every 15 minutes if at least 50 keys changed.
save [1] [2] save [3] 1
This configuration saves snapshots at two intervals: every 900 seconds (15 minutes) if 50 keys changed, and every 300 seconds (5 minutes) if at least 1 key changed.