From 31ef410e88dabb3f0d475dd3cae9edc00ba55aa7 Mon Sep 17 00:00:00 2001 From: Itamar Haber Date: Sun, 21 Aug 2022 17:01:17 +0300 Subject: [PATCH] Adds historical note about lower-case geo units support (#11162) This change was part of #9656 (Redis 7.0) --- src/commands.c | 16 +++++++++++++--- src/commands/georadius.json | 4 ++++ src/commands/georadiusbymember.json | 6 ++++++ src/commands/geosearch.json | 6 ++++++ src/commands/geosearchstore.json | 6 ++++++ 5 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/commands.c b/src/commands.c index aa5baa722..fa4a6c0d8 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1928,6 +1928,7 @@ struct redisCommandArg GEOPOS_Args[] = { /* GEORADIUS history */ commandHistory GEORADIUS_History[] = { {"6.2.0","Added the `ANY` option for `COUNT`."}, +{"7.0.0","Added support for lower-case unit names."}, {0} }; @@ -1977,7 +1978,10 @@ struct redisCommandArg GEORADIUS_Args[] = { /********** GEORADIUSBYMEMBER ********************/ /* GEORADIUSBYMEMBER history */ -#define GEORADIUSBYMEMBER_History NULL +commandHistory GEORADIUSBYMEMBER_History[] = { +{"7.0.0","Added support for lower-case unit names."}, +{0} +}; /* GEORADIUSBYMEMBER tips */ #define GEORADIUSBYMEMBER_tips NULL @@ -2118,7 +2122,10 @@ struct redisCommandArg GEORADIUS_RO_Args[] = { /********** GEOSEARCH ********************/ /* GEOSEARCH history */ -#define GEOSEARCH_History NULL +commandHistory GEOSEARCH_History[] = { +{"7.0.0","Added support for lower-case unit names."}, +{0} +}; /* GEOSEARCH tips */ #define GEOSEARCH_tips NULL @@ -2207,7 +2214,10 @@ struct redisCommandArg GEOSEARCH_Args[] = { /********** GEOSEARCHSTORE ********************/ /* GEOSEARCHSTORE history */ -#define GEOSEARCHSTORE_History NULL +commandHistory GEOSEARCHSTORE_History[] = { +{"7.0.0","Added support for lower-case unit names."}, +{0} +}; /* GEOSEARCHSTORE tips */ #define GEOSEARCHSTORE_tips NULL diff --git a/src/commands/georadius.json b/src/commands/georadius.json index 606ed43ed..aa2888767 100644 --- a/src/commands/georadius.json +++ b/src/commands/georadius.json @@ -11,6 +11,10 @@ [ "6.2.0", "Added the `ANY` option for `COUNT`." + ], + [ + "7.0.0", + "Added support for lower-case unit names." ] ], "deprecated_since": "6.2.0", diff --git a/src/commands/georadiusbymember.json b/src/commands/georadiusbymember.json index fbc7ea4ee..6074983bc 100644 --- a/src/commands/georadiusbymember.json +++ b/src/commands/georadiusbymember.json @@ -7,6 +7,12 @@ "arity": -5, "function": "georadiusbymemberCommand", "get_keys_function": "georadiusGetKeys", + "history": [ + [ + "7.0.0", + "Added support for lower-case unit names." + ] + ], "deprecated_since": "6.2.0", "replaced_by": "`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` and `FROMMEMBER` arguments", "doc_flags": [ diff --git a/src/commands/geosearch.json b/src/commands/geosearch.json index e69094df4..94cd392b1 100644 --- a/src/commands/geosearch.json +++ b/src/commands/geosearch.json @@ -6,6 +6,12 @@ "since": "6.2.0", "arity": -7, "function": "geosearchCommand", + "history": [ + [ + "7.0.0", + "Added support for lower-case unit names." + ] + ], "command_flags": [ "READONLY" ], diff --git a/src/commands/geosearchstore.json b/src/commands/geosearchstore.json index 1be5cd409..5130fafcb 100644 --- a/src/commands/geosearchstore.json +++ b/src/commands/geosearchstore.json @@ -6,6 +6,12 @@ "since": "6.2.0", "arity": -8, "function": "geosearchstoreCommand", + "history": [ + [ + "7.0.0", + "Added support for lower-case unit names." + ] + ], "command_flags": [ "WRITE", "DENYOOM"