Sunday, 12 April 2015

ZCARD key : Get the cardinality of the set


Syntax
ZCARD key
    Returns the number of elements in the set.

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 


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment