Learn R Programming

rredis (version 1.6.9)

redisSDiff: Return the difference of two or more sets.

Description

Return the (set) difference of two or more sets.

Usage

redisSDiff(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.

Value

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

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.

References

http://redis.io/commands

See Also

redisSDiff

Examples

Run this code
redisConnect()
redisSAdd('A',1)
redisSAdd('A',2)
redisSAdd('B',4)
redisSDiff('A','B')
redisSDiff(c('A','B'))
redisSDiff(list('A','B'))

Run the code above in your browser using DataLab