Redis 教程 Redis Sync 命令

sewell · 2022-03-04 10:34:58 · 热度: 7

Redis Sync 命令用于同步主从服务器。

语法

redis SYNC 命令基本语法如下:

redis 127.0.0.1:6379> SYNC

可用版本

>= 1.0.0

返回值

不明确。

实例

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"

猜你喜欢:
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册