RedisSortedSetsZUNIONSTORE Method |
计算给定的一个或多个有序集的并集,其中给定 key 的数量必须以 numkeys 参数指定,并将该并集(结果集)储存到 destination 。
默认情况下,结果集中某个成员的 score 值是所有给定集下该成员 score 值之 和 。
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public int ZUNIONSTORE(
string destinationKey,
IDictionary<string, int> keyWeights,
RedisAggregate aggregate
)
Public Function ZUNIONSTORE (
destinationKey As String,
keyWeights As IDictionary(Of String, Integer),
aggregate As RedisAggregate
) As Integer
public:
int ZUNIONSTORE(
String^ destinationKey,
IDictionary<String^, int>^ keyWeights,
RedisAggregate aggregate
)
member ZUNIONSTORE :
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