Set the string value in argument as value of the key of a hashmap.
name
- The name of the hashmapkey
- The key of the key-value pair in the hashmapvalue
- The value of the key-value pair in the hashmapReturns 1
if key
is a new key in the hashmap and value is set, else returns 0
.
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>