Reputation: 8841
I added some records using GEOADD, but how can I get a count of how many items?
I made one called cities
and added a bunch of city lat/lng, but I am curious how I can get a count of how many there are?
Upvotes: 0
Views: 156
Reputation: 22926
The geo index is, in fact, a sorted set. So you can use ZCARD
to get the size of index.
Upvotes: 1