My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SaveCommand  
Updated Dec 21, 2010 by anti...@gmail.com

We moved to Redis.io!

Redis home moved to http://redis.io, please visit our new home.

Comment by acharnock, Oct 24, 2009

Is there any reason to use SAVE rather than BGSAVE?

Thank you :)

Comment by project member anti...@gmail.com, Oct 24, 2009

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.

Comment by searledepinho@gmail.com, Jan 20, 2010

This command save my all DBs or only the selected DB in disk?

Comment by project member anti...@gmail.com, Jan 20, 2010

@searledepinho all the DBs


Sign in to add a comment
Powered by Google Project Hosting