- Overall
- Quickstarts
- Features
- SDKs
- Typescript
- Python
- Overview
- Getting Started
- Features
- Commands
- Ratelimit (TS)
- Ratelimit (PY)
- How To
- Integrations
- Tutorials
- Troubleshooting
- Help
Hash
HGETALL
Retrieves all fields from a hash.
redis.hset("myhash", values={
"field1": "Hello",
"field2": "World"
})
assert redis.hgetall("myhash") == {"field1": "Hello", "field2": "World"}
Arguments
The key to get.
Response
An object with all fields in the hash.
redis.hset("myhash", values={
"field1": "Hello",
"field2": "World"
})
assert redis.hgetall("myhash") == {"field1": "Hello", "field2": "World"}
Was this page helpful?
redis.hset("myhash", values={
"field1": "Hello",
"field2": "World"
})
assert redis.hgetall("myhash") == {"field1": "Hello", "field2": "World"}