HSTRLEN key field
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.
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.
"OK"
redis> HSTRLEN myhash f1 (integer) 10
redis> HSTRLEN myhash f2 (integer) 2
redis> HSTRLEN myhash f3 (integer) 4
© 2009–2018 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/hstrlen