redis replace go redis

pull/236/head
Gordon 3 years ago
parent 3765661a4e
commit 1c2ebb8c5d

@ -35,7 +35,8 @@ func (d *DataBases) NewSetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid stri
for k, v := range s { for k, v := range s {
m[k] = v m[k] = v
} }
err = d.rdb.HMSet(context.Background(), key, m).Err() //err = d.rdb.HMSet(context.Background(), key, m).Err()
err = d.rdb.HMSet(context.Background(), "12", map[string]interface{}{"1": 2, "343": false}).Err()
if err != nil { if err != nil {
return err return err
log2.NewWarn(operationID, utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, s, err.Error()) log2.NewWarn(operationID, utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, s, err.Error())

Loading…
Cancel
Save