GC loop gc session data
()
| 165 | |
| 166 | // GC loop gc session data |
| 167 | func (manager *SessionManager) GC() { |
| 168 | num := manager.store.SessionGC() |
| 169 | if num > 0 { |
| 170 | manager.appLog.Debug("SessionManger.GC => "+strconv.Itoa(num), LogTarget_Session) |
| 171 | } |
| 172 | time.AfterFunc(time.Duration(manager.GCLifetime)*time.Second, func() { manager.GC() }) |
| 173 | } |
no test coverage detected