OpenIM-Gordon 76d9688a54
refactor: db refactor and cache key add. (#2320)
* refactor: db refactor and cache key add.

* refactor: db refactor and cache key add.

* refactor: go version update.

* refactor: file name change.
2024-05-27 03:58:36 +00:00

12 lines
251 B
Go

package cachekey
import "github.com/openimsdk/protocol/constant"
const (
UidPidToken = "UID_PID_TOKEN_STATUS:"
)
func GetTokenKey(userID string, platformID int) string {
return UidPidToken + userID + ":" + constant.PlatformIDToName(platformID)
}