Redis – Server Bgsave Command

  • Post author:
  • Post category:Redis
  • Post comments:1 Comment

Redis BGSAVE command saves the DB in the background. The OK code is immediately returned. Redis forks, the parent continues to serve the clients, the child saves the DB on the disk, then exits. A client may be able to check if the operation succeeded using the LASTSAVE command.

Return Value

Simple string reply.

Syntax

Following is the basic syntax of Redis BGSAVE command.

redis 127.0.0.1:6379> BGSAVE

This Post Has One Comment

Leave a Reply