Skip to content

Commit 55dc4a9

Browse files
authored
DEV: add RESP2/3 return information to the remaining commands (#1917)
1 parent 51fc7d8 commit 55dc4a9

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

content/commands/client-no-evict.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,23 @@ When turned on and client eviction is configured, the current connection will be
5050
When turned off, the current client will be re-included in the pool of potential clients to be evicted (and evicted if needed).
5151

5252
See [client eviction]({{< relref "/develop/reference/clients" >}}#client-eviction) for more details.
53+
54+
## Return information
55+
56+
{{< multitabs id="client-no-evict-return-info"
57+
tab1="RESP2"
58+
tab2="RESP3" >}}
59+
60+
One of the following:
61+
62+
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful.
63+
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments.
64+
65+
-tab-sep-
66+
67+
One of the following:
68+
69+
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful.
70+
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments.
71+
72+
{{< /multitabs >}}

content/commands/client-no-touch.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,23 @@ The `CLIENT NO-TOUCH` command controls whether commands sent by the client will
4747
When turned on, the current client will not change LFU/LRU stats, unless it sends the [`TOUCH`]({{< relref "/commands/touch" >}}) command.
4848

4949
When turned off, the client touches LFU/LRU stats just as a normal client.
50+
51+
## Return information
52+
53+
{{< multitabs id="client-no-touch-return-info"
54+
tab1="RESP2"
55+
tab2="RESP3" >}}
56+
57+
One of the following:
58+
59+
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful.
60+
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments.
61+
62+
-tab-sep-
63+
64+
One of the following:
65+
66+
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if the command was successful.
67+
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: wrong number of or invalid arguments.
68+
69+
{{< /multitabs >}}

content/commands/memory-malloc-stats.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,17 @@ the memory allocator.
3232

3333
This command is currently implemented only when using **jemalloc** as an
3434
allocator, and evaluates to a benign NOOP for all others.
35+
36+
## Return information
37+
38+
{{< multitabs id="memory-malloc-stats-return-info"
39+
tab1="RESP2"
40+
tab2="RESP3" >}}
41+
42+
[Bulk string reply](../../develop/reference/protocol-spec#bulk-strings): a long string of statistics.
43+
44+
-tab-sep-
45+
46+
[Verbatim string reply](../../develop/reference/protocol-spec#verbatim-strings): a long string of statistics.
47+
48+
{{< /multitabs >}}

0 commit comments

Comments
 (0)