HMSET
SYNOPSIS
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 key
.
field
already exists in the specified hash, this command overwrites the existing value with the given value
.key
does not exist, a new hash is created for the key
, and the given values are inserted to the associated given fields.key
is associated with a non-hash data, an error is raised.RETURN VALUE
Returns status string.
EXAMPLES
$ HMSET yugahash area1 "America" area2 "Africa"
"OK"
$ HGET yugahash area1
"America"
SEE ALSO
hdel
, hexists
, hget
, hgetall
, hkeys
, hlen
, hmget
, hset
, hstrlen
, hvals