Redis Hash Example is an example object payload from Redis, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"description": "Redis Hash operations for storing structured objects",
"examples": [
{
"operation": "HSET",
"description": "Store multiple fields in a hash",
"command": "HSET user:1234 name Alice email alice@example.com age 30 role admin",
"explanation": "Creates or updates hash 'user:1234' with four fields.",
"response": 4
},
{
"operation": "HGET",
"description": "Get a single field from a hash",
"command": "HGET user:1234 email",
"response": "alice@example.com"
},
{
"operation": "HGETALL",
"description": "Get all fields and values from a hash",
"command": "HGETALL user:1234",
"response": {
"name": "Alice",
"email": "alice@example.com",
"age": "30",
"role": "admin"
}
},
{
"operation": "HINCRBY",
"description": "Increment a numeric field in a hash",
"command": "HINCRBY user:1234:stats logins 1",
"response": 42
}
]
}
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.