Retrieves the value of a hash field.
await redis.hset("key", {field: "value"}); const field = await redis.hget("key", "field"); console.log(field); // "value"
The key to get.
The field to get.
The value of the field, or null, when field is not present in the hash or key does not exist.
null
Was this page helpful?