From e906d5e3c99a2878c171c7ef951e4db7651d18c2 Mon Sep 17 00:00:00 2001 From: "David W. Dougherty" Date: Thu, 31 Jul 2025 14:14:11 -0700 Subject: [PATCH] DEV: add RESP2/3 return information to the remaining commands --- content/commands/client-no-evict.md | 20 ++++++++++++++++++++ content/commands/client-no-touch.md | 20 ++++++++++++++++++++ content/commands/memory-malloc-stats.md | 14 ++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/content/commands/client-no-evict.md b/content/commands/client-no-evict.md index 977fd4096d..8fefcd8d6c 100644 --- a/content/commands/client-no-evict.md +++ b/content/commands/client-no-evict.md @@ -50,3 +50,23 @@ When turned on and client eviction is configured, the current connection will be When turned off, the current client will be re-included in the pool of potential clients to be evicted (and evicted if needed). See [client eviction]({{< relref "/develop/reference/clients" >}}#client-eviction) for more details. + +## Return information + +{{< multitabs id="client-no-evict-return-info" + tab1="RESP2" + tab2="RESP3" >}} + +One of the following: + +* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful. +* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments. + +-tab-sep- + +One of the following: + +* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful. +* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments. + +{{< /multitabs >}} diff --git a/content/commands/client-no-touch.md b/content/commands/client-no-touch.md index 39afb05bd8..bb34314648 100644 --- a/content/commands/client-no-touch.md +++ b/content/commands/client-no-touch.md @@ -47,3 +47,23 @@ The `CLIENT NO-TOUCH` command controls whether commands sent by the client will When turned on, the current client will not change LFU/LRU stats, unless it sends the [`TOUCH`]({{< relref "/commands/touch" >}}) command. When turned off, the client touches LFU/LRU stats just as a normal client. + +## Return information + +{{< multitabs id="client-no-touch-return-info" + tab1="RESP2" + tab2="RESP3" >}} + +One of the following: + +* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful. +* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments. + +-tab-sep- + +One of the following: + +* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful. +* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments. + +{{< /multitabs >}} diff --git a/content/commands/memory-malloc-stats.md b/content/commands/memory-malloc-stats.md index ece412fe7b..71db46eb1e 100644 --- a/content/commands/memory-malloc-stats.md +++ b/content/commands/memory-malloc-stats.md @@ -32,3 +32,17 @@ the memory allocator. This command is currently implemented only when using **jemalloc** as an allocator, and evaluates to a benign NOOP for all others. + +## Return information + +{{< multitabs id="memory-malloc-stats-return-info" + tab1="RESP2" + tab2="RESP3" >}} + +[Bulk string reply](../../develop/reference/protocol-spec#bulk-strings): a long string of statistics. + +-tab-sep- + +[Verbatim string reply](../../develop/reference/protocol-spec#verbatim-strings): a long string of statistics. + +{{< /multitabs >}}