Learn R Programming

rredis (version 1.7.0)

redisSRem: Remove an element from a set.

Description

Remove an element from a set.

Usage

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).

Value

TRUE upon successful removal, FALSE otherwise.

Details

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

References

http://redis.io/commands

See Also

redisSAdd

Examples

Run this code
## Not run: 
# redisConnect()
# redisSAdd('set', 5)
# redisSAdd('set', 7)
# redisSMembers('set')
# redisSRem('set',5)
# redisSMembers('set')
# ## End(Not run)

Run the code above in your browser using DataLab