NewSessionStore initializes a session store.
(lifetime time.Duration)
| 263 | |
| 264 | // NewSessionStore initializes a session store. |
| 265 | func NewSessionStore(lifetime time.Duration) *SessionStore { |
| 266 | ss := &SessionStore{ |
| 267 | lru: list.New(), |
| 268 | lifeTime: lifetime, |
| 269 | |
| 270 | sessCache: make(map[string]*Session), |
| 271 | } |
| 272 | |
| 273 | statsRegisterInt("LiveSessions") |
| 274 | statsRegisterInt("TotalSessions") |
| 275 | |
| 276 | return ss |
| 277 | } |
no test coverage detected
searching dependent graphs…