redisSInter: Find and return the intersection of two or more sets.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/setVal.R

Description

Find and return the intersection of two or more sets.

Usage

1

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 intersection 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

redisSUnion

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
redisConnect()
redisSAdd('A',1)
redisSAdd('A',2)
redisSAdd('A',3)
redisSAdd('B',2)
redisSInter('A','B')
redisSInter(c('A','B'))
redisSInter(list('A','B'))

## End(Not run)

rredis documentation built on May 2, 2019, 2:02 p.m.