hset name key value

Set the string value in argument as value of the key of a hashmap.

Parameters

Return Value

Returns 1 if key is a new key in the hashmap and value is set, else returns 0.

Example

ssdb 127.0.0.1:8888> hdel h k
1
(0.000 sec)
ssdb 127.0.0.1:8888> hset h k v
1
(0.000 sec)
ssdb 127.0.0.1:8888> hset h k v
0
(0.000 sec)
ssdb 127.0.0.1:8888>