Sunday, 12 April 2015

ZCOUNT key min max


Syntax
ZCOUNT key min max
    Returns the number of elements in the specified score range.


127.0.0.1:6379> zadd city 1.5 Bombay 0.9 Hyderabad 2.3 Vijayawada 3.2 Delhi 
(integer) 4 
127.0.0.1:6379> zcard city 
(integer) 4 
127.0.0.1:6379> zcount city 1.5 2.4 
(integer) 2 


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment