await redis.hset("key", "field", "value"); const exists = await redis.hexists("key", "field"); console.log(exists); // 1
Checks if a field exists in a hash.
1
field
0
key
Was this page helpful?