Learn R Programming

rredis (version 1.6.9)

redisCmd: General Redis Interface Function

Description

Perform any Redis command.

Usage

redisCmd(CMD, ..., raw = FALSE)

Arguments

CMD
The (required) Redis command (character string).
...
Redis command arguments.
raw
If TRUE, return results in raw byte form.

Value

  • Output from the Redis command--varies depending on command.

Details

Use this low-level function to perform any Redis operation. The ... argument(s) not already in raw format will be converted to raw byte format, and non-character values will be serialized.

References

http://redis.io/commands

Examples

Run this code
redisCmd('set','x',runif(5))
redisCmd('get','x')

Run the code above in your browser using DataLab