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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework