Description Usage Arguments Value Author(s) References See Also Examples
Select and return an element of a set at random.
1 | redisSRandMember(set, ...)
|
set |
The set key name (character). |
... |
Optional additional arguments. Specify |
An element from the set selected randomly. An error is thrown if the set does not exist.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 7 8 | ## Not run:
redisConnect()
redisSAdd('set',1)
redisSAdd('set',2)
redisSAdd('set',3)
redisSRandMember('set')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.