HGET

Syntax
HGET key field
Available since:
Redis Open Source 2.0.0
Time complexity:
O(1)
ACL categories:
@read, @hash, @fast,

Returns the value associated with field in the hash stored at key.

Examples

Give these commands a try in the interactive console:

HSET myhash field1 "foo" HGET myhash field1 HGET myhash field2

Return information

One of the following:

RATE THIS PAGE
Back to top ↑