HSTRLEN
AttentionThis page documents an earlier version. Go to the latest (v2.1)version.
Synopsis
HSTRLEN key field
This command seeks the length of a string value that is associated with the given field
in a hash table that is associated with the given key
.
- If the
key
orfield
does not exist, 0 is returned. - If the
key
is associated with a non-hash-table value, an error is raised.
Return Value
Returns the length of the specified string.
Examples
You can do this as shown below.
$ HMSET yugahash L1 America L2 Europe
"OK"
$ HSTRLEN yugahash L1
7
See Also
hdel
, hexists
, hget
, hgetall
, hkeys
, hlen
, hmget
, hmset
, hset
, hincrby
, hvals
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .