Redis Hash: HSCAN
HSCAN key cursor [MATCH pattern] [COUNT count]
HSCAN array of elements contains two elements, a field, and a value, for every returned element of the Hash.
Syntax:
HSCAN key cursor [MATCH pattern] [COUNT count]
Available since
2.8.0.
Return Value
return a two elements multi-bulk reply, where the first element is a string representing an unsigned 64 bit number (the cursor), and the second element is a multi-bulk with an array of elements.
Return Value Type
Integer
Example: Redis HSCAN
Iteration of an Hash value.
127.0.0.1:6379> HMSET langhash lang1 "PHP" lang2 "JavaScript" lang3 "Python" lang4 "GoLanguage" OK 127.0.0.1:6379> HSCAN langhash 0 1) "0" 2) 1) "lang1" 2) "PHP" 3) "lang2" 4) "JavaScript" 5) "lang3" 6) "Python" 7) "lang4" 8) "GoLanguage"
Previous:
HVALS
Next:
Redis Lists BLPOP
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics