MCPcopy Create free account
hub / github.com/astercloud/aster / InMemoryService

Struct InMemoryService

pkg/session/inmemory.go:16–19  ·  view source on GitHub ↗

InMemoryService 内存实现的 Session 服务 适用于开发和测试环境

Source from the content-addressed store, hash-verified

14// InMemoryService 内存实现的 Session 服务
15// 适用于开发和测试环境
16type InMemoryService struct {
17 mu sync.RWMutex
18 sessions map[string]*inMemorySession
19}
20
21// NewInMemoryService 创建内存 Session 服务
22func NewInMemoryService() *InMemoryService {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected