HSTRLEN
Syntax
HSTRLEN key field
- Available since:
- 3.2.0
- Time complexity:
- O(1)
- ACL categories:
-
@read
,@hash
,@fast
,
Returns the string length of the value associated with field
in the hash stored at key
. If the key
or the field
do not exist, 0 is returned.
Return
Integer reply: the string length of the value associated with field
, or zero when field
is not present in the hash or key
does not exist at all.
Examples
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.