HSET
Synopsis
HSET key field value
This command sets the data for the given field of the hash that is associated with the given key with the given value. If the field already exists in the hash, it is overwritten.
Return value
Depends on the configuration parameter emulate_redis_responses.
Examples
$ HSET yugahash area1 "America"
1
$ HSET yugahash area1 "North America"
0
$ HGET yugahash area1
"North America"
$ HSET yugahash area1 "America"
"OK"
$ HSET yugahash area1 "North America"
"OK"
$ HGET yugahash area1
"North America"
See also
hdel, hexists, hget, hgetall, hincrby, hkeys, hlen, hmget, hmset, hstrlen, hvals