Hash
HGETALL
Retrieves all fields from a hash.
await redis.hset("key", {
field1: "value1",
field2: "value2",
});
const hash = await redis.hgetall("key");
console.log(hash); // { field1: "value1", field2: "value2" }
await redis.hset("key", {
field1: "value1",
field2: "value2",
});
const hash = await redis.hgetall("key");
console.log(hash); // { field1: "value1", field2: "value2" }