AttentionThis page documents an earlier version. Go to the latest (v2.0)version.
HMSET key field value [field value ...]
This command sets the data for the given
field with the given
value in the hash that is specified by
fieldalready exists in the specified hash, this command overwrites the existing value with the given
keydoes not exist, a new hash is created for the
key, and the given values are inserted to the associated given fields.
keyis associated with a non-hash data, an error is raised.
Returns status string.
$ HMSET yugahash area1 "America" area2 "Africa"
$ HGET yugahash area1