Home »
MCQs »
Redis MCQs
Which of the following commands is used to get the number of fields in a hash?
24. Which of the following commands is used to get the number of fields in a hash?
- HDEL key field2 [field2]
- HKEYS key
- HVALS key
- HLENS key
Answer: D) HLENS key
Explanation:
HLENS key command is used to get the number of fields in a hash.