Hash
HVALS
Returns all values in the hash stored at key.
await redis.hset("key", {
field1: "Hello",
field2: "World",
})
const values = await redis.hvals("key")
console.log(values) // ["Hello", "World"]
Arguments
key
string
requiredThe key of the hash.
Response
All values in the hash, or an empty list when key does not exist.
Was this page helpful?
await redis.hset("key", {
field1: "Hello",
field2: "World",
})
const values = await redis.hvals("key")
console.log(values) // ["Hello", "World"]