HKEYS
AttentionThis page documents an earlier version. Go to the latest (v2.1)version.
Synopsis
HKEYS key
This command fetches all fields of the hash that is associated with the given key
.
- If the
key
does not exist, an empty list is returned. - If the
key
is associated with non-hash data, an error is raised.
Return Value
Returns list of fields in the specified hash.
Examples
You can do this as shown below.
$ HSET yugahash area1 "Africa"
1
$ HSET yugahash area2 "America"
1
$ HKEYS yugahash
1) "area1"
2) "area2"
See Also
hdel
, hexists
, hget
, hgetall
, hlen
, hmget
, hmset
, hset
, hincrby
, hstrlen
, hvals
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .