Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (49 sloc) 0.98 kb
18ef7965 » B. W. Lewis
2010-03-11 Consolidated control functions into controlCMD.R; finished set functions
1 \name{redisSUnion}
2 \alias{redisSUnion}
3 \title{
4 Return the union of two or more sets.
5 }
6 \description{
7 Return the union of two or more sets.
8 }
9 \usage{
10 redisSUnion(keys, ...)
11 }
12 \arguments{
13 \item{keys}{
14 A vector or list of keys corresponding to sets. May also be a single
15 key.
16 }
17 \item{...}{
18 Additional keys corresponding to sets. See the examples below.
19 }
20 }
21 \details{
22 The first argument may be a vector of set names, a list of set names,
23 or a single set name. If only a single set name is specified, specify
24 more sets as additional function arguments as shown in the examples.
25 }
26 \value{
27 A list of elements in the union of the specified sets, or
28 NULL if the intersection is the empty set.
29 }
30 \references{
31 http://code.google.com/p/redis/wiki/SunionCommand
32 }
33 \author{
34 B. W. Lewis
35 }
36 \seealso{
37 \code{\link{redisSInter}}
38 }
39 \examples{
40 \dontrun{
41 redisConnect()
42 redisSAdd('A',1)
43 redisSAdd('A',2)
44 redisSAdd('B',4)
45 redisSUnion('A','B')
46 redisSUnion(c('A','B'))
47 redisSUnion(list('A','B'))
48 }
49 }
Something went wrong with that request. Please try again.