implement Set interface
(sessionId string, sessionMeta *SessionMeta)
| 81 | |
| 82 | // implement Set interface |
| 83 | func (s *SessionService) Set(sessionId string, sessionMeta *SessionMeta) { |
| 84 | maxCacheTime := time.Hour * 12 |
| 85 | s.cache.Set(sessionId, sessionMeta, maxCacheTime) |
| 86 | } |
| 87 | |
| 88 | func (s *SessionService) GetMode(sessionId string) SessionMode { |
| 89 | // Get the session mode from the cache. |