HLEN
Attention
This page documents an earlier version. Go to the latest (v2.3) version.Synopsis
HLEN key
This command fetches the number of fields in the hash that is associated with the given key
.
Return value
Returns number of fields in the specified hash.
Examples
$ HSET yugahash area1 "Africa"
1
$ HSET yugahash area2 "America"
1
$ HLEN yugahash
2
See also
hdel
, hexists
, hget
, hgetall
, hkeys
, hmget
, hmset
, hset
, hincrby
, hstrlen
, hvals