Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redisRandomKey

Return a randomly selected key from the currently selected database.


Description

Return a randomly selected key from the currently selected database.

Usage

redisRandomKey()

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

## Not run: 
redisConnect()
redisRandomKey()

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.