mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-16 02:27:01 +08:00
19 lines
338 B
Go
19 lines
338 B
Go
package cachekey
|
|
|
|
import (
|
|
"strconv"
|
|
)
|
|
|
|
const (
|
|
sendMsgFailedFlag = "SEND_MSG_FAILED_FLAG:"
|
|
messageCache = "MSG_CACHE:"
|
|
)
|
|
|
|
func GetMsgCacheKey(conversationID string, seq int64) string {
|
|
return messageCache + conversationID + ":" + strconv.Itoa(int(seq))
|
|
}
|
|
|
|
func GetSendMsgKey(id string) string {
|
|
return sendMsgFailedFlag + id
|
|
}
|