diff --git a/pkg/common/db/newRedisModel.go b/pkg/common/db/newRedisModel.go index f8ff63ed2..8db19df2a 100644 --- a/pkg/common/db/newRedisModel.go +++ b/pkg/common/db/newRedisModel.go @@ -30,7 +30,7 @@ func (d *DataBases) NewSetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid stri continue } log2.NewDebug(operationID, "convert map is ", s) - val, err := d.rdb.HMSet(ctx, key, s).Result() + val, err := d.rdb.HSet(ctx, key, s).Result() if err != nil { return err log2.NewWarn(operationID, utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, s, val, err.Error())