Learn R Programming

rredis (version 1.6.9)

redisHMSet: Store a list of hash values.

Description

Store a list of hash values at once.

Usage

redisHMSet(key, values)

Arguments

key
The (required) character identifier for the key name.
values
An R list of values to be stored. The list names are used as field names and must be nonempty.

Value

  • TRUE is returned on success.

Details

Redis hash values store values in one or more fields associated with a single key name. The redisHMSet function stores several fields associated with one key at once. Values already occupying any specified field slots are replaced.

References

http://redis.io/commands

See Also

redisHGet

Examples

Run this code
redisHMSet('A', list(x=1,y=2,z=3))
redisHGet('A','y')

Run the code above in your browser using DataLab