Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redisSUnion

Return the union of two or more sets.


Description

Return the union of two or more sets.

Usage

redisSUnion(keys, ...)

Arguments

keys

A vector or list of keys corresponding to sets. May also be a single key.

...

Additional keys corresponding to sets. See the examples below.

Details

The first argument may be a vector of set names, a list of set names, or a single set name. If only a single set name is specified, specify more sets as additional function arguments as shown in the examples.

Value

A list of elements in the union of the specified sets, or NULL if the intersection is the empty set.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisSAdd('A',1)
redisSAdd('A',2)
redisSAdd('B',4)
redisSUnion('A','B')
redisSUnion(c('A','B'))
redisSUnion(list('A','B'))

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.