What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.
SYNC
An internal command used in replication.
Usage
SYNC
Since
1.0.0
ACL Categories
@admin, @dangerous, @slow
Command flags
NO_ASYNC_LOADING, ADMIN, NO_MULTI, NOSCRIPT
Initiates a replication stream from the primary.
The SYNC command is called by Valkey replicas for initiating a replication
stream from the primary. It has been replaced in newer versions of Valkey by
PSYNC.
For more information about replication in Valkey please check the
replication page.
Replies
RESP2
Non-standard return value, a bulk transfer of the data followed by PING and write requests from the primary.
RESP3
Non-standard return value, a bulk transfer of the data followed by PING and write requests from the primary.