Learn R Programming

rredis (version 1.6.9)

redisGet: Retrieve a value from Redis.

Description

Retrieve a value identified by a key from the Redis database.

Usage

redisGet(key, ...)

Arguments

key
The (required) character identifier for the value to be looked up.
...
Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

  • The value corresponding to the specified key, or NULL if the matching key contained no value or if no matching key was found.

Details

The key must not contain spaces or newline characters (otherwise an error will be thrown). The raw option is used to retrieve binary data from other languages.

References

http://redis.io/commands

See Also

redisSet

Examples

Run this code
redisSet('x',runif(5))
redisGet('x')

Run the code above in your browser using DataLab