SaveCommand: Contents
SAVE
Return value

# SaveCommand

ï»¿#sidebar ControlCommandsSidebar

### SAVE

> Save the whole dataset on disk (this means that all the databases are saved, as well as keys with an EXPIRE set (the expire is preserved). The server hangs while the saving is notcompleted, no connection is served in the meanwhile. An OK codeis returned when the DB was fully stored in disk.

> The background variant of this command is BGSAVE that is able to perform the saving in the background while the server continues serving other clients.

## Return value

Status code reply