Learn R Programming

rredis (version 1.7.0)

redisZUnionStore: redisZUnionStore

Description

Store the union of two sorted sets into another sorted set.

Usage

redisZUnionStore(dstkey, keys, weights = c(), aggregate = NULL, ...)

Arguments

dstkey
The destination set name.
keys
A vector or list of sorted set names.
weights
A set of weights equal in length to the keys argument, or NULL (default). If specified, the weights associated with the members of each set will be multiplied by the specified weight values.
aggregate
A character value of either "SUM" "MIN" or "MAX" indicating how the resulting weights should be aggregated.
...
Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

  • The number of elements stored in the destination set.

Details

See the Redis documentation for details.

References

http://redis.io/commands