(userId int64, lastActiveTime int64)
| 195 | } |
| 196 | |
| 197 | func (uc *UserCacheType) SetLastActiveTime(userId int64, lastActiveTime int64) { |
| 198 | uc.Lock() |
| 199 | defer uc.Unlock() |
| 200 | if user, exists := uc.users[userId]; exists { |
| 201 | user.LastActiveTime = lastActiveTime |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | func (uc *UserCacheType) loopUpdateLastActiveTime() { |
| 206 | defer func() { |