ZDIFFSTORE
Syntax
ZDIFFSTORE destination numkeys key [key ...]
- Available since:
- 6.2.0
- Time complexity:
- O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.
- ACL categories:
-
@write,@sortedset,@slow,
计算第一个和所有后续输入排序集合之间的差异,并将结果存储在destination中。输入键的总数由numkeys指定。
不存在的键被视为空集。
如果 destination 已经存在,它将被覆盖。