|
SaveCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
► Sign in to add a comment
|
Search
|
|
SaveCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
Is there any reason to use SAVE rather than BGSAVE?
Thank you :)
In datasets as big as RAM, and with an OS that is not able to overcommit memory (or with Linux without the right overcommit settings) it may happen that BGSAVE will fail (without to crash the server, just reporting the error). If this is the case, then SAVE will make you sure your dataset is safe :)
SAVE is also internally used when you call the SHUTDOWN command in order to make sure no data gets lost before to close the process.
This command save my all DBs or only the selected DB in disk?
@searledepinho all the DBs