MCPcopy
hub / github.com/docker/docker-agent / NewInMemorySessionStore

Function NewInMemorySessionStore

pkg/session/store.go:139–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func NewInMemorySessionStore() Store {
140 return &InMemorySessionStore{
141 sessions: concurrent.NewMap[string, *Session](),
142 }
143}
144
145func (s *InMemorySessionStore) AddSession(_ context.Context, session *Session) error {
146 if session.ID == "" {

Calls 1

NewMapFunction · 0.92