redis replace go redis

This commit is contained in:
Gordon
2022-05-31 14:25:52 +08:00
parent a630653d88
commit 628984c09d
2 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (d *DataBases) NewSetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid stri
}
log2.NewDebug(operationID, "convert map is ", s)
fmt.Println("ts", s)
err = d.rdb.HMSet(ctx, key, s).Err()
err = d.rdb.HMSet(context.Background(), key, s).Err()
if err != nil {
return err
log2.NewWarn(operationID, utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, s, err.Error())