Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

466 B
Raw Blame
package store

// MemStore is an in-memory Store implementation. It satisfies Store
// structurally via its Get/Put method set.
type MemStore struct {
	data map[string]string
}

// NewMemStore constructs a MemStore. Called cross-package from cmd/app.
func NewMemStore() *MemStore {
	return &MemStore{data: make(map[string]string)}
}

func (m *MemStore) Get(key string) string { return m.data[key] }

func (m *MemStore) Put(key, value string) { m.data[key] = value }