await redis.hset("key", {
  field1: "Hello",
  field2: "World",
})
const values = await redis.hvals("key")
console.log(values) // ["Hello", "World"]

Arguments

key
string
required

The key of the hash.

Response

All values in the hash, or an empty list when key does not exist.

await redis.hset("key", {
  field1: "Hello",
  field2: "World",
})
const values = await redis.hvals("key")
console.log(values) // ["Hello", "World"]