Available since: 6.2.0
Time complexity: O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape
This command is like
GEOSEARCH, but stores the result in destination key.
By default, it stores the results in the
destination sorted set with their geospatial information.
When using the
STOREDIST option, the command stores the items in a sorted set populated with their distance from the center of the circle or box, as a floating-point number, in the same unit specified for that shape.
Integer reply: the number of elements in the resulting set.