Latest web development tutorials

Redis Bgsave command

Redis server

Redis Bgsave command asynchronously in the background to save the current data in the database to disk.

After executing the command immediately returns OK BGSAVE and Redis fork a new child process, the original Redis process (parent process) continue to process client requests, the child process is responsible for saving data to disk, and then exit.

grammar

redis Bgsave basic command syntax is as follows:

redis 127.0.0.1:6379> BGSAVE

Available versions

> = 1.0.0

return value

Feedback.

Examples

redis> BGSAVE
Background saving started

Redis server