Learn R Programming

rredis (version 1.7.0)

redisMSet: Set one or more key/value pairs in the Redis database.

Description

Set one or more key/value pairs in the Redis database.

Usage

redisMSet(keyvalues, NX = FALSE, ...)

Arguments

keyvalues
A list of values to set of the form list(key1=value1, key2=value2, ...)
NX
If NX = TRUE, existing values will not be replaced, otherwise they will be.
...
Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

``OK'' upon success.

Details

Set one or more key/value pairs in the Redis database. Existing values will be replaced.

References

http://redis.io/commands

See Also

redisGet

Examples

Run this code
## Not run: 
# redisMSet(list(x=5, y=6))
# ## End(Not run)

Run the code above in your browser using DataLab