redis replace go redis

This commit is contained in:
Gordon
2022-05-31 15:13:59 +08:00
committed by Xinwei Xiong(cubxxw-openim)
parent 85b9a2cc39
commit b9597a139b
2 changed files with 56 additions and 0 deletions
+13
View File
@@ -57,3 +57,16 @@ func Test_NewSetMessageToCache(t *testing.T) {
assert.Nil(t, err)
}
func Test_NewGetMessageListBySeq(t *testing.T) {
var msg pbChat.MsgDataToMQ
var data server_api_params.MsgData
uid := "test_uid"
data.Seq = 11
data.ClientMsgID = "23jwhjsdf"
msg.MsgData = &data
seqMsg, failedSeqList, err := DB.NewGetMessageListBySeq(uid, []uint32{11}, "cacheTest")
assert.Nil(t, err)
fmt.Println(seqMsg, failedSeqList)
}