Return all field names in the hash stored at key.
await redis.hset("key", { id: 1, username: "chronark", }); const fields = await redis.hkeys("key"); console.log(fields); // ["id", "username"]
The key of the hash.
The field names of the hash
Was this page helpful?