Sorted Set
ZDIFFSTORE
Writes the difference between sets to a new key.
const values = await redis.zdiffstore("destination", 2, "key1", "key2");
Arguments
destination
string
requiredThe key to write the difference to.
keys
integer
requiredHow many keys to compare.
keys
...string[]
requiredThe keys to compare.
Response
The number of elements in the resulting set.
const values = await redis.zdiffstore("destination", 2, "key1", "key2");