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

Struct RuntimeStore

session/store_runtime.go:10–15  ·  view source on GitHub ↗

MemProvider Implement the provider interface

Source from the content-addressed store, hash-verified

8
9// MemProvider Implement the provider interface
10type 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
17func NewRuntimeStore(config *StoreConfig) *RuntimeStore {
18 return &RuntimeStore{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected