Redis SYNC命令

Redis SYNC命令用於同步從站服務到主站。

返回值

字串返回

語法

redis SYNC命令的基本語法如下所示:

redis 127.0.0.1:6379> SYNC 

例子

redis 127.0.0.1:6379> SYNC 
Entering slave output mode...  (press Ctrl-C to quit)
SYNC with master, discarding 18 bytes of bulk transfer...
SYNC done. Logging commands from master.
"PING"
"PING"
"PING"
"PING"

上一篇: 下一篇: Redis環境安裝配置