英[seɪv] 美[sev]

vt. Save; save; save; rescue

vi. Save; save; save

prep.&conj. Except...

n. Rescue, rescue

Third person singular: saves Present participle: saving Past tense: saved Past participle: saved

redis SAVE command syntax

Function: The SAVE command performs a synchronous save operation and saves all data snapshots of the current Redis instance to the hard disk in the form of RDB files.

Syntax: SAVE

Description: Generally speaking, the SAVE operation is rarely performed in a production environment because it will block all clients. The task of saving the database is usually performed asynchronously by the BGSAVE command. However, if the background child process responsible for saving data unfortunately encounters a problem, SAVE can be used as a last resort to save data.

Available versions: >= 1.0.0

Time complexity: O(N), N is the number to be saved to the database The number of keys.

Return: Return OK when the save is successful.

redis SAVE command example

redis> SAVE
OK