PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/man/redisSRandMember.Rd

http://github.com/bwlewis/rredis
Unknown | 35 lines | 35 code | 0 blank | 0 comment | 0 complexity | 2da880c08b43ede57415f3d39674a9ee MD5 | raw file
 1\name{redisSRandMember}
 2\alias{redisSRandMember}
 3\title{Choose a random element from a set}
 4\description{
 5Select and return an element of a set at random.
 6}
 7\usage{
 8redisSRandMember(set, ...)
 9}
10\arguments{
11  \item{set}{The set key name (character).}
12  \item{...}{ Optional additional arguments.  Specify \code{raw=TRUE} to skip de-serialization of the data.}
13}
14\value{
15An element from the set selected randomly. An error is thrown if the set does
16not exist.
17}
18\references{
19http://redis.io/commands
20}
21\author{
22B. W. Lewis
23}
24\seealso{
25\code{\link{redisSAdd}}
26}
27\examples{
28\dontrun{
29redisConnect()
30redisSAdd('set',1)
31redisSAdd('set',2)
32redisSAdd('set',3)
33redisSRandMember('set')
34}
35}