From 462efaeb164edb6406633fa3983404f3aba95710 Mon Sep 17 00:00:00 2001 From: prvyk Date: Fri, 31 Jan 2025 08:36:42 +0200 Subject: [PATCH] Add to json in correct sort order --- libs/resources/RespCommandsDocs.json | 32 ++++++++++++++-------------- libs/resources/RespCommandsInfo.json | 8 +++---- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/libs/resources/RespCommandsDocs.json b/libs/resources/RespCommandsDocs.json index 75a9d9ce6b..9a6bcbd9ed 100644 --- a/libs/resources/RespCommandsDocs.json +++ b/libs/resources/RespCommandsDocs.json @@ -7584,13 +7584,13 @@ ] }, { - "Command": "ZRANGEBYSCORE", - "Name": "ZRANGEBYSCORE", - "Summary": "Returns members in a sorted set within a range of scores.", + "Command": "ZRANGEBYLEX", + "Name": "ZRANGEBYLEX", + "Summary": "Returns the number of members in a sorted set within a lexicographical range.", "Group": "SortedSet", "Complexity": "O(log(N)\u002BM) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).", "DocFlags": "Deprecated", - "ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060BYSCORE\u0060 argument", + "ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060BYLEX\u0060 argument", "Arguments": [ { "TypeDiscriminator": "RespCommandKeyArgument", @@ -7611,14 +7611,6 @@ "DisplayText": "max", "Type": "Double" }, - { - "TypeDiscriminator": "RespCommandBasicArgument", - "Name": "WITHSCORES", - "DisplayText": "withscores", - "Type": "PureToken", - "Token": "WITHSCORES", - "ArgumentFlags": "Optional" - }, { "TypeDiscriminator": "RespCommandContainerArgument", "Name": "LIMIT", @@ -7643,13 +7635,13 @@ ] }, { - "Command": "ZRANGEBYLEX", - "Name": "ZRANGEBYLEX", - "Summary": "Returns the number of members in a sorted set within a lexicographical range.", + "Command": "ZRANGEBYSCORE", + "Name": "ZRANGEBYSCORE", + "Summary": "Returns members in a sorted set within a range of scores.", "Group": "SortedSet", "Complexity": "O(log(N)\u002BM) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).", "DocFlags": "Deprecated", - "ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060BYLEX\u0060 argument", + "ReplacedBy": "\u0060ZRANGE\u0060 with the \u0060BYSCORE\u0060 argument", "Arguments": [ { "TypeDiscriminator": "RespCommandKeyArgument", @@ -7670,6 +7662,14 @@ "DisplayText": "max", "Type": "Double" }, + { + "TypeDiscriminator": "RespCommandBasicArgument", + "Name": "WITHSCORES", + "DisplayText": "withscores", + "Type": "PureToken", + "Token": "WITHSCORES", + "ArgumentFlags": "Optional" + }, { "TypeDiscriminator": "RespCommandContainerArgument", "Name": "LIMIT", diff --git a/libs/resources/RespCommandsInfo.json b/libs/resources/RespCommandsInfo.json index ed30b3c8ac..5214c21013 100644 --- a/libs/resources/RespCommandsInfo.json +++ b/libs/resources/RespCommandsInfo.json @@ -5180,8 +5180,8 @@ ] }, { - "Command": "ZRANGEBYSCORE", - "Name": "ZRANGEBYSCORE", + "Command": "ZRANGEBYLEX", + "Name": "ZRANGEBYLEX", "Arity": -4, "Flags": "ReadOnly", "FirstKey": 1, @@ -5205,8 +5205,8 @@ ] }, { - "Command": "ZRANGEBYLEX", - "Name": "ZRANGEBYLEX", + "Command": "ZRANGEBYSCORE", + "Name": "ZRANGEBYSCORE", "Arity": -4, "Flags": "ReadOnly", "FirstKey": 1,