w3resource

Redis Server: BGSAVE

Description

Redis BGSAVE command is used to save 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 disk then exits.

Syntax:

Basic syntax of redis BGSAVE command is shown below:

BGSAVE

Available since

1.0.0.

Return Value

Simple string reply.

Return Value Type

String

Previous: BGREWRITEAOF
Next: CLIENT KILL



Follow us on Facebook and Twitter for latest update.