Arguments
string
required
The key to get.
string
required
The field to check.
Response
1 if the hash contains field. 0 if the hash does not contain field, or key does not exist.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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 if the hash contains field. 0 if the hash does not contain field, or key does not exist.await redis.hset("key", "field", "value");
const exists = await redis.hexists("key", "field");
console.log(exists); // 1
Was this page helpful?