Arguments
string
required
The key of the hash.
{ [fieldName]: TValue }
required
An object of fields and their values.
Response
The number of fields that were added.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
await redis.hset("key", {
id: 1,
username: "chronark",
name: "andreas"
});
Write one or more fields to a hash.
await redis.hset("key", {
id: 1,
username: "chronark",
name: "andreas"
});
Was this page helpful?