You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
562 B
22 lines
562 B
10 months ago
|
package cachekey
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
const (
|
||
|
userExpireTime = time.Second * 60 * 60 * 12
|
||
|
userInfoKey = "USER_INFO:"
|
||
|
userGlobalRecvMsgOptKey = "USER_GLOBAL_RECV_MSG_OPT_KEY:"
|
||
|
olineStatusKey = "ONLINE_STATUS:"
|
||
|
userOlineStatusExpireTime = time.Second * 60 * 60 * 24
|
||
|
statusMod = 501
|
||
|
platformID = "_PlatformIDSuffix"
|
||
|
)
|
||
|
|
||
|
func GetUserInfoKey(userID string) string {
|
||
|
return userInfoKey + userID
|
||
|
}
|
||
|
|
||
|
func GetUserGlobalRecvMsgOptKey(userID string) string {
|
||
|
return userGlobalRecvMsgOptKey + userID
|
||
|
}
|