Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

key
string
required
The key to get.
field
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.
await redis.hset("key", "field", "value");
const exists = await redis.hexists("key", "field");

console.log(exists); // 1