MULTI(3valkey)
π MULTI (3valkey) β the valkey command manual, but make it bestie
okay so real talk, this is the multi page from the Valkey Command Manual and honestly? it's a whole vibe. short, sweet, absolutely iconic. let's get into it π«Ά
β¨ NAME β¨
multi β Starts a transaction. that's it. that's the whole job. queen behavior fr fr π
πΈ SYNOPSIS πΈ
MULTI
no arguments, no flags, no little optional extras to stress about. you literally just type it. we love a low-maintenance command β¨
π¦ DESCRIPTION π¦
okay so here's the tea, bestie π
MULTI marks the start of a transaction block. that's the β¨ main character moment β¨ where everything changes.
once you've called it, every command you send after that gets queued up instead of running immediately. they just sit there, waiting, holding their little breaths π β and then they all go off together, atomically, the second you hit them with EXEC.
so likeβ¦ it's a group chat where nobody sends a message until the host says go. no cap. π
π REPLY π
valkey-protocol(7)Simple string reply:OK.
that's it. she says OK and she means it π
π COMPLEXITY π
constant time, babes. instant. effortless. it's giving no thoughts, just start the transaction β¨
π ACL CATEGORIES π
@fast@transaction
two categories, both slaying π§
β HISTORY β
- Available since:
1.2.0
she's been here since 1.2.0 and she has never once needed a glow-up π
π₯ SEE ALSO π₯
the whole transaction squad, assembled ππ«Ά go read them next, iykyk
ok genuine note bestie:MULTIonly starts the block. it doesn't run anything by itself β the queued commands are executed atomically byEXEC. don't forget the second half of the plan π
version 9.0.0, dated 2025-10-21, and it's still MULTI(3valkey) at heart. periodt. πβ¨π
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms