UNWATCH(3valkey)
β¨ UNWATCH π
okay bestie, welcome to the Valkey Command Manual π (yes, section 3valkey, we're fancy like that). sit down, hydrate, and let's talk about forgetting things on purpose. no cap.
πΈ NAME πΈ
unwatch β forgets about watched keys of a transaction. it's giving selective amnesia, and honestly? iconic. π¦
β¨ SYNOPSIS β¨
UNWATCH
that's it. that's the whole vibe. no args, no flags, no drama. just vibes. π«Ά
π DESCRIPTION π
so basically: UNWATCH flushes all the previously watched keys for a transaction. every single one. gone. bye. not me cleaning house. π
now here's the tea you actually need, bestie β β if you call EXEC or DISCARD, there's no need to manually call UNWATCH. it already handled itself. it's a self-cleaning queen π. so don't be out here doing extra work for no reason, that's not main character energy.
lowkey important: UNWATCH wipes all your watched keys at once. there's no "just this one key" option. it's all or nothing, periodt. π
π REPLY π
valkey-protocol(7) Simple string reply: OK.
translation: it just says OK and moves on with its life. no essays, no paragraphs. cunty and concise. β¨
π§ COMPLEXITY π§
constant time, babes. it does not care how many keys you watched, it is not doing a little loop, it is just yeeting the whole list. fast fr fr π₯
π ACL CATEGORIES π
@fastβ speedy lil command, no heavy lifting π¨@transactionβ it lives in transaction-land, where all theMULTI/EXECgirlies hang out π
π HISTORY π
- Available since:
2.2.0β she's been around a while, an elder stateswoman of forgetting π«‘
β SEE ALSO β
discard(3valkey)β throws the whole transaction awayexec(3valkey)β actually runs the transactionmulti(3valkey)β starts the transaction blockwatch(3valkey)β the one that makes keys watched in the first place (soUNWATCHhas something to forget) π
iykyk, this whole little squad is a package deal. go read them all, bestie, they're all connected. πΈ
and that's the whole page!! π this was Valkey version 9.0.0, dated 2025-10-21 β go forth and forget your watched keys responsibly, queen. mwah πβ¨π¦
π¦ 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