无涯教程-Redis - SYNC 命令函数

28 阅读1分钟

Redis SYNC 命令用于将从站同步到主站。

SYNC - 返回值

返回字符串内容。

SYNC - 语法

以下是Redis SYNC 命令的基本语法。

redis 127.0.0.1:6379> SYNC

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" 

参考链接

www.learnfk.com/redis/serve…