MCPcopy Index your code
hub / github.com/InferCore/InferCore / NewMemoryStore

Function NewMemoryStore

internal/requests/memory.go:17–22  ·  view source on GitHub ↗

NewMemoryStore returns an in-process ledger (non-durable).

()

Source from the content-addressed store, hash-verified

15
16// NewMemoryStore returns an in-process ledger (non-durable).
17func NewMemoryStore() Store {
18 return &memoryStore{
19 requests: map[string]RequestRow{},
20 steps: map[string][]StepRow{},
21 }
22}
23
24func (m *memoryStore) CreateRequest(_ context.Context, row RequestRow) error {
25 m.mu.Lock()

Calls

no outgoing calls