Learn R Programming

rredis (version 1.7.0)

redisHMGet: Retrieve a list of hash values.

Description

Retrieve a list of hash values from specified key/field pairs at once.

Usage

redisHMGet(key, fields, ...)

Arguments

key
The (required) character identifier for the key name.
fields
An R string vector of hash fields to retrieve.
...
Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

Details

Redis hash values store values in one or more fields associated with a single key name. The redisHMGet function retrieves several fields associated with one key at once. Fields not present return NULL.

References

http://redis.io/commands

See Also

redisHSet,redisHMSet

Examples

Run this code
## Not run: 
# redisHMSet('A', list(x=1,y=2,z=3))
# redisHMGet('A',c('y','z'))
# ## End(Not run)

Run the code above in your browser using DataLab