From dbb7337e49cbab0b66f2d32a131c6e7b56a529fb 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) (cherry picked from commit 31ef410e88dabb3f0d475dd3cae9edc00ba55aa7) --- 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 3af1cd6dc..002f847b6 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1934,6 +1934,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} }; @@ -1983,7 +1984,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 @@ -2124,7 +2128,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 @@ -2213,7 +2220,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 ba58db562..5f9515a64 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 c7a399fc3..bb2c556dd 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 a83dcaadb..3a855033d 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 16db5d37e..56e1915f9 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"