GEOSEARCHSTORERun GEOSEARCH on source and store the hits into destination.
| Syntax | GEOSEARCHSTORE destination source FROMMEMBER member|FROMLONLAT longitude latitude BYRADIUS radius m|km|mi|ft|BYBOX width height m|km|mi|ft [ASC|DESC] [COUNT count [ANY]] [STOREDIST] |
| Group | geo |
| Arity | -5 |
| Since | 1.0.0 |
| Flags | write |
| Complexity | O(log N + C) to search, plus O(D + K log K) to rewrite the destination on its own shard |
| Redis compatibility | differs: STOREDIST stores the distance in the unit the query asked for (Redis does the same); the destination is written on its own shard, so the source and destination may live on different cores and the write is not atomic with the read |