Learn R Programming

rredis (version 1.6.9)

redisSMembers: List elements of a set.

Description

Return a list containing all the members (elements) of the specified set.

Usage

redisSMembers(set, ...)

Arguments

set
The set key name (character).
...
Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

  • A list containing the set elements. An error is thrown if the set does not exist.

References

http://redis.io/commands

See Also

redisSAdd

Examples

Run this code
redisConnect()
redisSAdd('set',runif(5))
redisSMembers('set')

Run the code above in your browser using DataLab