kevy4.0

ZDIFFSTORE

Store the difference of the given sorted sets into destination.

ZDIFFSTORE destination numkeys key [key ...]
Group
Sorted set
Since
1.0.0
Arity
at least 4
Flags
write

Complexity

O(sum of the source cardinalities + R log R); each source is extracted whole on its own shard

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Compatible

Behaves as Redis does.

See also

BZPOPMINZADDZCARDZCOUNTZINCRBYZINTERCARDZINTERSTOREZPOPMINZPOPMIN.BELOWZRANGEZRANGEBYSCOREZRANKZREMZREMRANGEBYRANKZREMRANGEBYSCOREZREVRANGEBYSCOREZSCANZSCOREZUNIONSTORE

← All commands