MCPcopy Create free account
hub / github.com/devfeel/dotweb / GC

Method GC

session/session.go:167–173  ·  view source on GitHub ↗

GC loop gc session data

()

Source from the content-addressed store, hash-verified

165
166// GC loop gc session data
167func (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}

Callers 2

NewSessionManagerFunction · 0.95
showPProfFunction · 0.80

Calls 2

SessionGCMethod · 0.65
DebugMethod · 0.65

Tested by

no test coverage detected