redis icon indicating copy to clipboard operation
redis copied to clipboard

there is no ZCOUNT command

Open gihnius opened this issue 11 years ago • 1 comments

can count a sorted set by zcount key -inf +inf ?

gihnius avatar Sep 23 '13 05:09 gihnius

Yes, you can do so with client.ZcountAll (or provide custom min/max as floats to client.Zcount). This can be seen in implementation here and I have opened a pull with appropriate tests for Zcount and ZcountAll in #43 .

alexanderscott avatar Apr 19 '15 03:04 alexanderscott