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

destination
string
required
The key to write the difference to.
keys
integer
required
How many keys to compare.
keys
...string[]
required
The keys to compare.

Response

The number of elements in the resulting set.
const values = await redis.zdiffstore("destination", 2, "key1", "key2");