CLIENT REPLY
Since 1.1.0Server
Syntax
CLIENT REPLY ON|OFF|SKIPTurns off the server's replies to this connection, to send a stream of commands without reading anything back.
OFF: no replies, errors included, untilCLIENT REPLY ON.CLIENT REPLY OFFgets no reply itself.SKIP: no reply to the next command alone, nor toCLIENT REPLY SKIPitself.ON: replies again, starting withOKto this command.
Pub/Sub messages and RESP3 push messages, such as client-side caching invalidations, are still sent. Without replies a client cannot tell whether a command failed, so this suits fire-and-forget writes, such as a bulk load whose result is checked afterwards.
Reply
OK to ON; nothing to OFF or SKIP.
Examples
> CLIENT REPLY SKIP
> SET a 1
> GET a
"1"
> CLIENT REPLY OFF
> SET a 2
> GET a
> CLIENT REPLY ON
OK
> GET a
"2"