Saturday 18 April 2015

HLEN key

Syntax
HLEN key
    Returns the number of fields stored at key. Returns 0 if the key doesn't exists.

127.0.0.1:6379> hgetall employee 
1) "2" 
2) "Kiran Kumar" 
3) "3" 
4) "Naveen" 
127.0.0.1:6379> hlen employee 
(integer) 2 
127.0.0.1:6379> hlen student 
(integer) 0 

 
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment