Files

14 lines
206 B
Go
Raw Permalink Normal View History

2024-07-16 10:46:21 +08:00
package cachekey
import "time"
const (
OnlineKey = "ONLINE:"
OnlineChannel = "online_change"
OnlineExpire = time.Hour / 2
)
func GetOnlineKey(userID string) string {
return OnlineKey + userID
}