Arguments
string
required
The key to get.
string
required
The field to get.
Response
The value of the field, or
null, when field is not present in the hash or key does not exist.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", {field: "value"});
const field = await redis.hget("key", "field");
console.log(field); // "value"
Retrieves the value of a hash field.
null, when field is not present in the hash or key does not exist.await redis.hset("key", {field: "value"});
const field = await redis.hget("key", "field");
console.log(field); // "value"
Was this page helpful?