Please take a good look at the official documents, there aren’t many.
1. save 60 1000 means that if there are more than 1000 write requests within 60 seconds, redis will call fsync once to ensure that the data is written back to the disk.
For example, this configuration will make Redis automatically dump the dataset to disk every 60 seconds if at least 1000 keys changed:
save 60 1000
2. Depends on whether you use AOF or RDB mode. The AOF mode (actually the log of all requests) will be automatically rebuilt (but it is very slow because it has to start from scratch), while the RDB mode may cause file corruption (so the official recommendation is regular backup).
Please take a good look at the official documents, there aren’t many.
1. save 60 1000 means that if there are more than 1000 write requests within 60 seconds, redis will call fsync once to ensure that the data is written back to the disk.
For example, this configuration will make Redis automatically dump the dataset to disk every 60 seconds if at least 1000 keys changed:
2. Depends on whether you use AOF or RDB mode. The AOF mode (actually the log of all requests) will be automatically rebuilt (but it is very slow because it has to start from scratch), while the RDB mode may cause file corruption (so the official recommendation is regular backup).
Like @felix021
However, in @felix021’s answer, save 60 1000, this should mean that fsync is executed once for at least 1000 requests within 60 seconds
It is recommended to use regular backup of RDB files to ensure data security. At the same time, you can use aof mode to ensure that data is not lost.