MCPcopy Create free account
hub / github.com/InferCore/InferCore / MemoryEngine

Struct MemoryEngine

internal/slo/memory_engine.go:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20type MemoryEngine struct {
21 mu sync.Mutex
22 records map[string]*requestTiming
23 maxRecords int
24 maxAge time.Duration
25}
26
27func NewMemoryEngine() *MemoryEngine {
28 return NewMemoryEngineFromConfig(config.SLOStoreConfig{})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected