From 5b4c923f4ac069593f02b52d92693364089a5df3 Mon Sep 17 00:00:00 2001 From: moznion Date: Wed, 29 Nov 2023 23:40:41 -0800 Subject: [PATCH] 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 --- resp2_replies.json | 4 +++- resp3_replies.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resp2_replies.json b/resp2_replies.json index fb590709cc..ce2f6efa9b 100644 --- a/resp2_replies.json +++ b/resp2_replies.json @@ -767,7 +767,9 @@ "* [Bulk string reply](/docs/reference/protocol-spec#bulk-strings): the encoding of the object." ], "OBJECT FREQ": [ - "[Integer reply](/docs/reference/protocol-spec#integers): the counter's value." + "One of the following:", + "[Integer reply](/docs/reference/protocol-spec#integers): the counter's value.", + "[Nil reply](/docs/reference/protocol-spec#bulk-strings): if _key_ doesn't exist." ], "OBJECT HELP": [ "[Array reply](/docs/reference/protocol-spec#arrays): a list of sub-commands and their descriptions" diff --git a/resp3_replies.json b/resp3_replies.json index addd0867dc..31f3f1fb18 100644 --- a/resp3_replies.json +++ b/resp3_replies.json @@ -767,7 +767,9 @@ "* [Bulk string reply](/docs/reference/protocol-spec#bulk-strings): the encoding of the object." ], "OBJECT FREQ": [ - "[Integer reply](/docs/reference/protocol-spec#integers): the counter's value." + "One of the following:", + "[Integer reply](/docs/reference/protocol-spec#integers): the counter's value.", + "[Null reply](/docs/reference/protocol-spec#nulls): if _key_ doesn't exist." ], "OBJECT HELP": [ "[Array reply](/docs/reference/protocol-spec#arrays): a list of sub-commands and their descriptions."