MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / NewMemoryStore

Function NewMemoryStore

internal/nodes/memory.go:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func NewMemoryStore() *MemoryStore {
15 return &MemoryStore{
16 nodes: make(map[string]Node),
17 }
18}
19
20func (s *MemoryStore) Upsert(node Node) (Node, error) {
21 s.mu.Lock()

Calls

no outgoing calls