SYNC(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’– SYNC(3valkey) β€” the Valkey Command Manual, but make it make sense πŸ’–

okay bestie, so this is a page from the Valkey Command Manual (yes, the 3valkey one) and it's about a little command called SYNC. she's old, she's iconic, she's basically retired but still showing up to the group chat. let's get into it πŸ¦‹


✨ NAME ✨

sync β€” an internal command used in replication. that's it, that's the whole name section, she's mysterious πŸ’…


✨ SYNOPSIS ✨

SYNC

no args, no flags, no nothing. just vibes. literally just say her name and she answers 😭


✨ DESCRIPTION ✨

so. SYNC kicks off a replication stream from the primary. that's the whole job description fr fr.

the tea is that the SYNC command gets called by Valkey replicas to start up a replication stream from the primary. that's her whole purpose, that's her main character energy.

BUT β€” and this is the part you need to know β€” she's been replaced in newer versions of Valkey by valkey-psync(7) PSYNC. so she's lowkey legacy. still valid, still around, but the new girl is doing the work now πŸ™ˆ

ngl, if you're reading this in 2025 wondering whether to use her: the manpage is telling you PSYNC is the upgrade. no cap.

and if you want the full lore on how replication works in Valkey, the page says to go check out the replication page. that's where the deep dive lives, bestie 🫢


✨ REPLY ✨

this is the fun part β€” she does not return a normal answer. it's a non-standard return value: a bulk transfer of the data, followed by PING and write requests from the primary.

so like... she doesn't reply with a cute little status code. she just starts dumping data at you and then the primary keeps pinging and writing. it's giving "no small talk, straight to business" πŸ’€


✨ ACL CATEGORIES ✨

  • @admin
  • @dangerous
  • @slow

all three. at once. she's a lot, and honestly? slay πŸ‘‘


✨ HISTORY ✨

  • Available since: 1.0.0

she's been here since the very beginning, an OG. respect the elders πŸŽ€


✨ SEE ALSO ✨

okay this is the big one, the link dump, the "you may also like" of it all. every single one of these, exactly as written:

iykyk 🌈


and that's the whole page, bestie!! this version of the manpage is from Valkey 9.0.0, dated 2025-10-21 β€” so go forth, replicate responsibly, and remember: SYNC is the old queen, PSYNC is the heir to the throne. periodt πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from