Write one or more fields to a hash.
await redis.hset("key", { id: 1, username: "chronark", name: "andreas" });
The key of the hash.
An object of fields and their values.
The number of fields that were added.
Was this page helpful?