RedisSortedSetsZINTERSTORE Method |
计算给定的一个或多个有序集的交集,其中给定 key 的数量必须以 numkeys 参数指定,并将该交集(结果集)储存到 destination 。
默认情况下,结果集中某个成员的 score 值是所有给定集下该成员 score 值之和.
关于 WEIGHTS 和 AGGREGATE 选项的描述,参见 ZUNIONSTORE 命令
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public int ZINTERSTORE(
string destinationKey,
IDictionary<string, int> keyWeights,
RedisAggregate aggregate
)
Public Function ZINTERSTORE (
destinationKey As String,
keyWeights As IDictionary(Of String, Integer),
aggregate As RedisAggregate
) As Integer
public:
int ZINTERSTORE(
String^ destinationKey,
IDictionary<String^, int>^ keyWeights,
RedisAggregate aggregate
)
member ZINTERSTORE :
destinationKey : string *
keyWeights : IDictionary<string, int> *
aggregate : RedisAggregate -> int
Parameters
- destinationKey
- Type: SystemString
目标键 - keyWeights
- Type: System.Collections.GenericIDictionaryString, Int32
键与乘法因子 - aggregate
- Type: AdfRedisAggregate
聚合方式
Return Value
Type:
Int32保存到 destination 的结果集的基数
See Also