mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 05:12:10 +08:00
15 lines
248 B
Go
15 lines
248 B
Go
package cachekey
|
|
|
|
import "time"
|
|
|
|
const (
|
|
OnlineKey = "ONLINE:"
|
|
OnlineChannel = "online_change"
|
|
//OnlineExpire = time.Hour / 2
|
|
OnlineExpire = time.Minute / 2 // test
|
|
)
|
|
|
|
func GetOnlineKey(userID string) string {
|
|
return OnlineKey + userID
|
|
}
|