redisSRem: Remove an element from a set.

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

View source: R/setVal.R

Description

Remove an element from a set.

Usage

1
redisSRem(set, element)

Arguments

set

The set name (character) from which to remove the element.

element

The element to remove (not and index, but the actual element value).

Details

The set element matching the specified element will be removed from the set.

Value

TRUE upon successful removal, FALSE otherwise.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

redisSAdd

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
redisConnect()
redisSAdd('set', 5)
redisSAdd('set', 7)
redisSMembers('set')
redisSRem('set',5)
redisSMembers('set')

## End(Not run)

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