MCPcopy
hub / github.com/google/mangle / NewInMemoryStore

Function NewInMemoryStore

factstore/factstore.go:93–98  ·  view source on GitHub ↗

NewInMemoryStore constructs a new InMemoryStore.

()

Source from the content-addressed store, hash-verified

91
92// NewInMemoryStore constructs a new InMemoryStore.
93func NewInMemoryStore[T any]() InMemoryStore[T] {
94 return InMemoryStore[T]{
95 make(map[ast.PredicateSym]ast.Atom),
96 make(map[ast.PredicateSym]T),
97 }
98}
99
100// SimpleInMemoryStore provides a simple implementation backed by a two-level map.
101// For each predicate sym, we have a separate map, using numeric hash as key.

Callers 4

NewSimpleInMemoryStoreFunction · 0.85
NewIndexedInMemoryStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected