UNWATCH(3valkey)

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

✨ 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 🧚

O(1)

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 the MULTI/EXEC girlies hang out πŸŽ€

πŸ’œ HISTORY πŸ’œ

  1. Available since: 2.2.0 β€” she's been around a while, an elder stateswoman of forgetting 🫑

⭐ SEE ALSO ⭐

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