Skip to content

HSET

HSET key field value [field value ...]

HSET sets the field and value for the key in the string-string map.

The command returns the number of fields that were added.

localhost:7379> HSET k1 f1 v1
OK 1
localhost:7379> HSET k1 f1 v1 f2 v2 f3 v3
OK 2