G
G
Guileastos2017-07-06 16:52:37
Redis
Guileastos, 2017-07-06 16:52:37

How to filter GEO data in Redis?

Redis is planned to be used to store user data: coordinates, active or not, language, and so on. With subsequent filtering by coordinates (display active users within the radius).
GEO commands allow you to store only coordinates, but allow you to find users within a radius.
If you use hmset, then you can set different fields, but you lose the ability to search by radius.
Is it possible to somehow make the necessary filtering, or will it be necessary to create 2 records for the user, one through geoadd, the other through hmset, filter first by radius, and check the received users for activity?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question