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

Struct InMemoryStore

pkg/memory/logic/store_inmemory.go:11–15  ·  view source on GitHub ↗

InMemoryStore 内存存储实现(用于测试和简单场景)

Source from the content-addressed store, hash-verified

9
10// InMemoryStore 内存存储实现(用于测试和简单场景)
11type InMemoryStore struct {
12 mu sync.RWMutex
13 memories map[string]*LogicMemory // key: namespace:key
14 closed bool
15}
16
17// NewInMemoryStore 创建内存存储
18func NewInMemoryStore() *InMemoryStore {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected