BGSAVE
在后台(Background)执行保存数据库操作。
Save the DB in background.
命令执行时,立即返回状态码 OK。Redisfork
出新进程,而父进程继续服务于客户端程序(Client),子进程将数据库保存到磁盘上后退出。客户端程序可以通过使用命令 LASTSAVE
来检测操作是否执行成功。
Save the DB in 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. A client my be able to check if the operation succeeded using the LASTSAVE command.