This commit is contained in:
withchao 2024-08-01 10:56:32 +08:00
parent a1b1678c9d
commit 5fb43eacac

View File

@ -5,7 +5,8 @@ import "time"
const (
OnlineKey = "ONLINE:"
OnlineChannel = "online_change"
OnlineExpire = time.Hour / 2
//OnlineExpire = time.Hour / 2
OnlineExpire = time.Minute / 2 // test
)
func GetOnlineKey(userID string) string {