redisRandomKey: Return a randomly selected key from the currently selected...

Description Usage Details Value Author(s) References Examples

View source: R/allValCMD.R

Description

Return a randomly selected key from the currently selected database.

Usage

1

Details

Note that this function returns key names, not values.

Value

A character string corresponding to a randomly-selected key from the currently selected database, or a zero-length string if no keys are defined.

Author(s)

B. W. Lewis

References

http://redis.io/commands

Examples

1
2
3
4
5
## Not run: 
redisConnect()
redisRandomKey()

## End(Not run)

rredis documentation built on May 2, 2019, 2:02 p.m.