I am trying to add multiple values to a hash in Redis using hmset.
Example :
hmset test1 name abc lastname B age 20
Next time when I try to add different values to the same hash key fields, it is replacing them with the existing value.
Is it possible to add multiple values to the same field in Redis using scala or nodejs?
Actual result
hmset test1 name abc lastname B age 20
hmset test1 name aa lastname D age 21
hgetall test1
- "name"
- "aa"
- "lastname"
- "BJ"
- "age"
- "20"
Expected result
hmset test1 name abc lastname B age 20
hmset test1 name aa lastname D age 21
hgetall test1
- "name"
- "abc"
- "aa"
- "lastname"
- "B"
- "D"
- "age"
- "20"
- "21"