Category Archives: redis

Redis geo.lua example using Go

I stumbled upon geo.lua which seemed to be an interesting library It’s described as – “… a Lua library containing miscellaneous geospatial helper routines for use with Redis“ Here is an example of using it with the Go Redis client (go-redis). … Continue reading

Posted in go, nosql, redis | Tagged , , , , , , | Leave a comment

Redis tech tip #1

In order to delete members from your Redis Geo-spatial collection, you can use ZREM (underneath the hood, the data is stored in a sorted set) Add a few (Indian) cities GEOADD IndianCities 28.6108127 77.2060241 NewDelhi ​GEOADD IndianCities 12.9715987 77.5945627 Bangalore GEOADD IndianCities 13.0826802 80.2707184 … Continue reading

Posted in nosql, redis | Tagged , , , | Leave a comment