Hash
HKEYS
Return all field names in the hash stored at key.
Arguments
keybodystringrequired
The key of the hash.
Response
string[]required
The field names of the hash
Example
await redis.hset("key", { id: 1, username: "chronark", });const fields = await redis.hkeys("key");console.log(fields); // ["id", "username"]