redis BGSAVE command
Translation results:
save
英[seɪv] 美[sev]
vt. Save; save; save; rescue
vi. Save; save ;Save the ball
prep.&conj.Except...
n.Rescue, rescue
Third person singular: saves Present participle: saving Past tense: saved Past participle: saved
redis BGSAVE commandsyntax
Function: Asynchronously save the current database data to disk in the background.
Note: The BGSAVE command returns OK immediately after execution, and then Redis forks a new child process. The original Redis process (parent process) continues to process client requests, and the child process is responsible for Save the data to disk and exit. The client can view relevant information through the LASTSAVE command to determine whether the BGSAVE command is executed successfully.
Available versions: >= 1.0.0
Time complexity: O(N), N is the number to be saved to the database The number of keys.
Return: Feedback information.
redis BGSAVE commandexample
redis> BGSAVE Background saving started