redis replace go redis

pull/455/head
Gordon 3 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 96f2eea111
commit 1c36220c1f

@ -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 {
log2.NewWarn(operationID, utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, s, val)
failedList = append(failedList, *msg)

Loading…
Cancel
Save