Learn R Programming

rredis (version 1.6.9)

redisMGet: Retrieve one or more values from Redis.

Description

Retrieve values corresponding to the specified list of keys.

Usage

redisMGet(keys, ...)

Arguments

keys
A vector or list of character strings corresponding to keys to retrieve.
...
Optional arguments. Specify raw=TRUE to skip de-serialization of the returned values.

Value

  • A list of retrieved key/value pairs. Missing values return NULL.

Details

Values are returned in a list with names corresponding to keys. The raw argument is used to retrieve binary data from other languages.

References

http://redis.io/commands

See Also

redisMSet

Examples

Run this code
redisSet('x',runif(5))
redisSet('y',runif(5))
redisMGet(c('x','y'))

Run the code above in your browser using DataLab