Sunday, 12 April 2015

SCARD key : Get the number of elements in a set

Syntax
SCARD key
   Returns the number of elements in a set.
  
127.0.0.1:6379> smembers set1 
1) "1" 
2) "2" 
3) "3" 
4) "4" 
5) "5" 
6) "6" 
7) "7" 
8) "8" 
127.0.0.1:6379> scard set1 
(integer) 8 


 
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment