summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknggk <106696198+knggk@users.noreply.github.com>2023-01-10 02:09:51 -0500
committerOran Agra <oran@redislabs.com>2023-01-16 18:40:35 +0200
commit5fa7d9a272574c43dd348442a16808462c3b5718 (patch)
treee963c5bd7a4aa6b2f5454d2fa0710b7cce4a1823
parent3e82bdf73803c084e549085cf9407e5e760630dd (diff)
downloadredis-5fa7d9a272574c43dd348442a16808462c3b5718.tar.gz
Add minimum version information to new xsetid arguments (#11694)
the metadata for the new arguments of XSETID, entries-added and max-deleted-id, which have been added in Redis 7.0 was missing. (cherry picked from commit 44c67703724aece7e9ae69d907570fd6f5d836e9)
-rw-r--r--src/commands.c4
-rw-r--r--src/commands/xsetid.json6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/commands.c b/src/commands.c
index a6b26a65f..98955ee0f 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -6649,8 +6649,8 @@ commandHistory XSETID_History[] = {
struct redisCommandArg XSETID_Args[] = {
{"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE},
{"last-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE},
-{"entries_added",ARG_TYPE_INTEGER,-1,"ENTRIESADDED",NULL,NULL,CMD_ARG_OPTIONAL},
-{"max_deleted_entry_id",ARG_TYPE_STRING,-1,"MAXDELETEDID",NULL,NULL,CMD_ARG_OPTIONAL},
+{"entries_added",ARG_TYPE_INTEGER,-1,"ENTRIESADDED",NULL,"7.0.0",CMD_ARG_OPTIONAL},
+{"max_deleted_entry_id",ARG_TYPE_STRING,-1,"MAXDELETEDID",NULL,"7.0.0",CMD_ARG_OPTIONAL},
{0}
};
diff --git a/src/commands/xsetid.json b/src/commands/xsetid.json
index 7654784e1..ace0c4b8e 100644
--- a/src/commands/xsetid.json
+++ b/src/commands/xsetid.json
@@ -54,13 +54,15 @@
"name": "entries_added",
"token": "ENTRIESADDED",
"type": "integer",
- "optional": true
+ "optional": true,
+ "since": "7.0.0"
},
{
"name": "max_deleted_entry_id",
"token": "MAXDELETEDID",
"type": "string",
- "optional": true
+ "optional": true,
+ "since": "7.0.0"
}
]
}