MCPcopy
hub / github.com/link1st/gowebsocket / getUserOnlineKey

Function getUserOnlineKey

lib/cache/user_cache.go:24–28  ·  view source on GitHub ↗

********************* 查询用户是否在线 ************************/

(userKey string)

Source from the content-addressed store, hash-verified

22
23/********************* 查询用户是否在线 ************************/
24func getUserOnlineKey(userKey string) (key string) {
25 key = fmt.Sprintf("%s%s", userOnlinePrefix, userKey)
26
27 return
28}
29
30func GetUserOnlineInfo(userKey string) (userOnline *models.UserOnline, err error) {
31 redisClient := redislib.GetClient()

Callers 2

GetUserOnlineInfoFunction · 0.85
SetUserOnlineInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected