Files
arenax-server/internal/consts/redis.go
2025-06-25 19:32:18 +08:00

28 lines
506 B
Go

package consts
// 用户
const (
UserBindPhoneKey = "user:bindPhone:%s"
UserBindPhoneLimitKey = "user:bindPhoneLimit:%s"
UserCodeExpire = 5 * 60
)
const (
GameLifeUserKey = "gamelife:user:%s"
GameLifeUserExpire = 2 * 60 * 60
)
const (
WeChatLoginCache = "wx:login:cache:%s"
WeChatLoginLimit = "wx:login:limit:%s"
)
const (
WechatAccessTokenKey = "wechat:access_token"
)
const (
NetbarOnlineNumberKey = "%s:online:device:%s"
NetbarOnlineDeviceSetKey = "%s:online_devices"
)