Sorted Set

ZDIFFSTORE

Writes the difference between sets to a new key.

Arguments

destinationbodystringrequired

The key to write the difference to.

keysbodyintegerrequired

How many keys to compare.

keysbody...string[]required

The keys to compare.

Response

required

The number of elements in the resulting set.

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