Learn R Programming

rredis (version 1.7.0)

redisSInterStore: Store intersection of two or more sets.

Description

Find the intersection of two or more sets, storing the result in the specified set.

Usage

redisSInterStore(dest, keys, ...)

Arguments

dest
The destination set in which to store the result.
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.

Value

A redis status code.

Details

The keys 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.

References

http://redis.io/commands

See Also

redisSUnionStore

Examples

Run this code
## Not run: 
# redisConnect()
# redisSAdd('A',1)
# redisSAdd('A',2)
# redisSAdd('A',3)
# redisSAdd('B',2)
# redisSInterStore('C','A','B')
# ## End(Not run)

Run the code above in your browser using DataLab