const values = await redis.zdiffstore("destination", 2, "key1", "key2");

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");