CLIENT-REPLY(3valkey)

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

πŸ’… CLIENT-REPLY πŸ’…

okay bestie, welcome to the client-reply page of the Valkey Command Manual β€” she lives in section 3valkey and she is lowkey one of the most underrated little commands in the whole roster. she's giving "quiet luxury" fr fr.


✨ NAME ✨

client-reply β€” tells the server whether it should even bother replying to your commands. it's the "do not disturb" mode of Valkey, and honestly? iconic.


πŸŽ€ SYNOPSIS πŸŽ€

CLIENT REPLY <ON | OFF | SKIP>

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, sometimes you as a client literally do not want the Valkey server to talk back. it's not personal, it's just efficiency. for example when you're sending fire and forget commands, or doing a whole mass loading of data, or you're in a caching context where new data is just streaming in constantly, nonstop, forever. in those situations, burning up server time and bandwidth to send replies back to clients that are gonna ignore them anyway is considered wasteful. like, why are we texting back if nobody's reading the chat, bestie 😭

the CLIENT REPLY command controls whether the server will reply to the client's commands. here are the modes you can vibe with:

  • ON β€” this is the default mode, where the server returns a reply to every single command. normal behaviour, no notes, she's just doing her job πŸ’–
  • OFF β€” in this mode the server will not reply to client commands at all. total silence. ghosting, but on purpose and sanctioned by the protocol.
  • SKIP β€” this mode skips the reply of the command immediately after it. just one. one single skipped reply. then it's business as usual.
⚠️ Note: starting with Valkey 9.0, the CLIENT REPLY command is disallowed inside a transaction (MULTI/EXEC). in earlier versions, using CLIENT REPLY within a transaction could corrupt the reply stream β€” which is exactly as scary as it sounds πŸ’€. attempting to use it within a transaction now results in an error reply. so don't do it. she will catch you. periodt.

πŸ’Œ REPLY πŸ’Œ

valkey-protocol(7) Simple string reply: OK when called with ON. when called with either OFF or SKIP sub-commands, no reply is made.

(yes, that means OFF and SKIP don't even confirm themselves. they're too cool for that. iykyk.)


🧚 COMPLEXITY 🧚

O(1) β€” constant time, babes. she's fast, she's cheap, she's not out here doing loops ✨


πŸ‘‘ ACL CATEGORIES πŸ‘‘

@connection @slow


🌸 HISTORY 🌸

  • Available since: 3.2.0

🌈 SEE ALSO 🌈


and that's the whole page, bestie!! this one shipped as part of the 9.0.0 manual on 2025-10-21. go forth and reply responsibly (or don't β€” that's literally the point of this command) πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from