Skip to content

Commit 5b4c923

Browse files
committed
Revise the response description of OBJECT FREQ command
`OBJECT FREQ` would return the nil/null response if the target key doesn't exist. Signed-off-by: moznion <[email protected]>
1 parent 6a53fb7 commit 5b4c923

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

resp2_replies.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,9 @@
767767
"* [Bulk string reply](/docs/reference/protocol-spec#bulk-strings): the encoding of the object."
768768
],
769769
"OBJECT FREQ": [
770-
"[Integer reply](/docs/reference/protocol-spec#integers): the counter's value."
770+
"One of the following:",
771+
"[Integer reply](/docs/reference/protocol-spec#integers): the counter's value.",
772+
"[Nil reply](/docs/reference/protocol-spec#bulk-strings): if _key_ doesn't exist."
771773
],
772774
"OBJECT HELP": [
773775
"[Array reply](/docs/reference/protocol-spec#arrays): a list of sub-commands and their descriptions"

resp3_replies.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,9 @@
767767
"* [Bulk string reply](/docs/reference/protocol-spec#bulk-strings): the encoding of the object."
768768
],
769769
"OBJECT FREQ": [
770-
"[Integer reply](/docs/reference/protocol-spec#integers): the counter's value."
770+
"One of the following:",
771+
"[Integer reply](/docs/reference/protocol-spec#integers): the counter's value.",
772+
"[Null reply](/docs/reference/protocol-spec#nulls): if _key_ doesn't exist."
771773
],
772774
"OBJECT HELP": [
773775
"[Array reply](/docs/reference/protocol-spec#arrays): a list of sub-commands and their descriptions."

0 commit comments

Comments
 (0)