summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguybe7 <guy.benoish@redislabs.com>2022-07-20 10:12:06 +0300
committerOran Agra <oran@redislabs.com>2022-09-21 22:42:01 +0300
commit9e3dfa96f740caeb45f1ca8d943096589a297568 (patch)
treebdd4adda4177606303a1bacc1305e3d2f1abc45e
parentd28314cb03bd46bdd6b40f5256b176ee0405419a (diff)
downloadredis-9e3dfa96f740caeb45f1ca8d943096589a297568.tar.gz
Adds LASTID to XCLAIM docs (#11017)
It seems it was overlooked when we first created the json files (cherry picked from commit 6d6e932fa6cce5a08aaf68a3d41946a1909a32a0)
-rw-r--r--src/commands.c1
-rw-r--r--src/commands/xclaim.json6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c
index f0bd067a5..c5ffae51b 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -6286,6 +6286,7 @@ struct redisCommandArg XCLAIM_Args[] = {
{"count",ARG_TYPE_INTEGER,-1,"RETRYCOUNT",NULL,NULL,CMD_ARG_OPTIONAL},
{"force",ARG_TYPE_PURE_TOKEN,-1,"FORCE",NULL,NULL,CMD_ARG_OPTIONAL},
{"justid",ARG_TYPE_PURE_TOKEN,-1,"JUSTID",NULL,NULL,CMD_ARG_OPTIONAL},
+{"id",ARG_TYPE_STRING,-1,"LASTID",NULL,NULL,CMD_ARG_OPTIONAL},
{0}
};
diff --git a/src/commands/xclaim.json b/src/commands/xclaim.json
index 5dcf8d508..045610900 100644
--- a/src/commands/xclaim.json
+++ b/src/commands/xclaim.json
@@ -88,6 +88,12 @@
"token": "JUSTID",
"type": "pure-token",
"optional": true
+ },
+ {
+ "name": "id",
+ "token": "LASTID",
+ "type": "string",
+ "optional": true
}
]
}