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

Function NewRuntimeStore

session/store_runtime.go:17–24  ·  view source on GitHub ↗
(config *StoreConfig)

Source from the content-addressed store, hash-verified

15}
16
17func NewRuntimeStore(config *StoreConfig) *RuntimeStore {
18 return &RuntimeStore{
19 lock: new(sync.RWMutex),
20 sessions: make(map[string]*list.Element),
21 list: new(list.List),
22 maxlifetime: config.Maxlifetime,
23 }
24}
25
26// SessionRead get session state by sessionId
27func (store *RuntimeStore) SessionRead(sessionId string) (*SessionState, error) {

Calls

no outgoing calls