Files
open-im-server/pkg/common/cachekey/user.go
T

15 lines
303 B
Go
Raw Normal View History

2024-01-15 16:33:25 +08:00
package cachekey
const (
2024-01-17 16:37:26 +08:00
UserInfoKey = "USER_INFO:"
UserGlobalRecvMsgOptKey = "USER_GLOBAL_RECV_MSG_OPT_KEY:"
2024-01-15 16:33:25 +08:00
)
func GetUserInfoKey(userID string) string {
2024-01-17 16:37:26 +08:00
return UserInfoKey + userID
2024-01-15 16:33:25 +08:00
}
func GetUserGlobalRecvMsgOptKey(userID string) string {
2024-01-17 16:37:26 +08:00
return UserGlobalRecvMsgOptKey + userID
2024-01-15 16:33:25 +08:00
}