CLIENT-REPLY(3valkey)
π 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, theCLIENT REPLYcommand is disallowed inside a transaction (MULTI/EXEC). in earlier versions, usingCLIENT REPLYwithin 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 π
auth(3valkey)client(3valkey)client-caching(3valkey)client-capa(3valkey)client-getname(3valkey)client-getredir(3valkey)client-help(3valkey)client-id(3valkey)client-import-source(3valkey)client-info(3valkey)client-kill(3valkey)client-list(3valkey)client-no-evict(3valkey)client-no-touch(3valkey)client-pause(3valkey)client-setinfo(3valkey)client-setname(3valkey)client-tracking(3valkey)client-trackinginfo(3valkey)client-unblock(3valkey)client-unpause(3valkey)echo(3valkey)hello(3valkey)ping(3valkey)quit(3valkey)reset(3valkey)select(3valkey)
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
- 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