MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / memoryStore

Function memoryStore

graph-ui/src/twin/reader-level-store.test.ts:20–29  ·  view source on GitHub ↗
(initial: Record<string, string> = {})

Source from the content-addressed store, hash-verified

18} from './reader-level-store';
19
20function memoryStore(initial: Record<string, string> = {}): KeyValueStore & { data: Record<string, string> } {
21 const data = { ...initial };
22 return {
23 data,
24 getItem: (key) => (key in data ? data[key] : null),
25 setItem: (key, value) => {
26 data[key] = value;
27 },
28 };
29}
30
31const lockedStore: KeyValueStore = {
32 getItem: () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected