From 784531cf450508f23f1ff67af241e483b6c40516 Mon Sep 17 00:00:00 2001 From: Borys Date: Fri, 29 Aug 2025 14:35:53 +0300 Subject: [PATCH 1/2] feat: add doc for georadius_ro and georadiusbymember_ro --- docs/command-reference/compatibility.md | 4 ++-- .../geospatial-indices/georadius_ro.md | 21 +++++++++++++++++++ .../georadiusbymember_ro.md | 21 +++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 docs/command-reference/geospatial-indices/georadius_ro.md create mode 100644 docs/command-reference/geospatial-indices/georadiusbymember_ro.md diff --git a/docs/command-reference/compatibility.md b/docs/command-reference/compatibility.md index 7e0dfa67..27a443ae 100644 --- a/docs/command-reference/compatibility.md +++ b/docs/command-reference/compatibility.md @@ -297,9 +297,9 @@ sidebar_position: 0 | | GEOHASH | Fully supported | | | GEOPOS | Fully supported | | | GEORADIUS | Fully supported | -| | GEORADIUS_RO | Unsupported | +| | GEORADIUS_RO | Fully supported | | | GEORADIUSBYMEMBER | Fully supported | -| | GEORADIUSBYMEMBER_RO | Unsupported | +| | GEORADIUSBYMEMBER_RO | Fully supported | | | GEOSEARCH | Fully supported | | | GEOSEARCHSTORE | Unsupported | | Bloom Filter | BF.ADD | Fully supported | diff --git a/docs/command-reference/geospatial-indices/georadius_ro.md b/docs/command-reference/geospatial-indices/georadius_ro.md new file mode 100644 index 00000000..c51c691b --- /dev/null +++ b/docs/command-reference/geospatial-indices/georadius_ro.md @@ -0,0 +1,21 @@ +--- +description: "Learn how to use GEORADIUS_RO to find geographical data in your Dragonfly database by defining latitude and longitude." +--- + +import PageTitle from '@site/src/components/PageTitle'; + +# GEORADIUS_RO + + + +## Syntax + + GEORADIUS_RO key longitude latitude radius [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC] + +**Time complexity:** O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index. + +**ACL categories:** @read, @geo, @slow + +Read-only variant of the GEORADIUS command. + +This command is identical to the GEORADIUS command, except that it doesn't support the optional STORE and STOREDIST parameters. \ No newline at end of file diff --git a/docs/command-reference/geospatial-indices/georadiusbymember_ro.md b/docs/command-reference/geospatial-indices/georadiusbymember_ro.md new file mode 100644 index 00000000..a2b76b02 --- /dev/null +++ b/docs/command-reference/geospatial-indices/georadiusbymember_ro.md @@ -0,0 +1,21 @@ +--- +description: "Learn how to use GEORADIUSBYMEMBER_RO to find geographical data in your Dragonfly database by defining radius." +--- + +import PageTitle from '@site/src/components/PageTitle'; + +# GEORADIUSBYMEMBER_RO + + + +## Syntax + + GEORADIUSBYMEMBER_RO key member radius [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC] + +**Time complexity:** O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index. + +**ACL categories:** @read, @geo, @slow + +Read-only variant of the GEORADIUSBYMEMBER command. + +This command is identical to the GEORADIUSBYMEMBER command, except that it doesn't support the optional STORE and STOREDIST parameters. \ No newline at end of file From 31aa106a0f90216f4727680ce5eca0dd07392bee Mon Sep 17 00:00:00 2001 From: Joe Zhou Date: Tue, 2 Sep 2025 16:40:39 -0400 Subject: [PATCH 2/2] feat: add doc for georadius_ro and georadiusbymember_ro - minor styling changes --- docs/command-reference/geospatial-indices/georadius_ro.md | 4 ++-- .../geospatial-indices/georadiusbymember_ro.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/command-reference/geospatial-indices/georadius_ro.md b/docs/command-reference/geospatial-indices/georadius_ro.md index c51c691b..22e46711 100644 --- a/docs/command-reference/geospatial-indices/georadius_ro.md +++ b/docs/command-reference/geospatial-indices/georadius_ro.md @@ -16,6 +16,6 @@ import PageTitle from '@site/src/components/PageTitle'; **ACL categories:** @read, @geo, @slow -Read-only variant of the GEORADIUS command. +Read-only variant of the [`GEORADIUS`](./georadius.md) command. -This command is identical to the GEORADIUS command, except that it doesn't support the optional STORE and STOREDIST parameters. \ No newline at end of file +This command is identical to the [`GEORADIUS`](./georadius.md) command, except that it doesn't support the optional `STORE` and `STOREDIST` parameters. diff --git a/docs/command-reference/geospatial-indices/georadiusbymember_ro.md b/docs/command-reference/geospatial-indices/georadiusbymember_ro.md index a2b76b02..2ad5bb62 100644 --- a/docs/command-reference/geospatial-indices/georadiusbymember_ro.md +++ b/docs/command-reference/geospatial-indices/georadiusbymember_ro.md @@ -16,6 +16,6 @@ import PageTitle from '@site/src/components/PageTitle'; **ACL categories:** @read, @geo, @slow -Read-only variant of the GEORADIUSBYMEMBER command. +Read-only variant of the [`GEORADIUSBYMEMBER`](./georadiusbymember.md) command. -This command is identical to the GEORADIUSBYMEMBER command, except that it doesn't support the optional STORE and STOREDIST parameters. \ No newline at end of file +This command is identical to the [`GEORADIUSBYMEMBER`](./georadiusbymember.md) command, except that it doesn't support the optional `STORE` and `STOREDIST` parameters.