MemProvider Implement the provider interface
| 8 | |
| 9 | // MemProvider Implement the provider interface |
| 10 | type RuntimeStore struct { |
| 11 | lock *sync.RWMutex // locker |
| 12 | sessions map[string]*list.Element // map in memory |
| 13 | list *list.List // for gc |
| 14 | maxlifetime int64 // session life time, with second |
| 15 | } |
| 16 | |
| 17 | func NewRuntimeStore(config *StoreConfig) *RuntimeStore { |
| 18 | return &RuntimeStore{ |
nothing calls this directly
no outgoing calls
no test coverage detected