Learn R Programming

rredis (version 1.7.0)

redisSIsMember: Test for set membership

Description

Test if an element belongs to a set.

Usage

redisSIsMember(set, element)

Arguments

set
A string set identifier.
element
The element whose membership is to be tested.

Value

TRUE if the element is a member of the set, FALSE otherwise.

References

http://redis.io/commands

See Also

redisSAdd

Examples

Run this code
## Not run: 
# redisConnect()
# redisSAdd("set",5)
# redisSIsMember("set",5)
# ## End(Not run)

Run the code above in your browser using DataLab