Arguments
str
required
The key to get.
str
required
The field to get.
Response
The value of the field, or
null, when field is not present in the hash or key does not exist.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.hset("myhash", "field1", "Hello")
assert redis.hget("myhash", "field1") == "Hello"
assert redis.hget("myhash", "field2") is None
Retrieves the value of a hash field.
null, when field is not present in the hash or key does not exist.redis.hset("myhash", "field1", "Hello")
assert redis.hget("myhash", "field1") == "Hello"
assert redis.hget("myhash", "field2") is None
Was this page helpful?