mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
redis replace go redis
This commit is contained in:
parent
628984c09d
commit
3765661a4e
@ -31,7 +31,11 @@ func (d *DataBases) NewSetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid stri
|
||||
}
|
||||
log2.NewDebug(operationID, "convert map is ", s)
|
||||
fmt.Println("ts", s)
|
||||
err = d.rdb.HMSet(context.Background(), key, s).Err()
|
||||
m := make(map[string]interface{})
|
||||
for k, v := range s {
|
||||
m[k] = v
|
||||
}
|
||||
err = d.rdb.HMSet(context.Background(), key, m).Err()
|
||||
if err != nil {
|
||||
return err
|
||||
log2.NewWarn(operationID, utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, s, err.Error())
|
||||
|
Loading…
x
Reference in New Issue
Block a user