Retrieves the value of a hash field.
redis.hset("myhash", "field1", "Hello") assert redis.hget("myhash", "field1") == "Hello" assert redis.hget("myhash", "field2") is None
The key to get.
The field to get.
The value of the field, or null, when field is not present in the hash or key does not exist.
null
Was this page helpful?