MCPcopy
hub / github.com/mudler/LocalAI / newQuotaCacheStore

Function newQuotaCacheStore

core/http/auth/quota.go:227–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225}
226
227func newQuotaCacheStore() *quotaCacheStore {
228 c := &quotaCacheStore{
229 rules: make(map[string]cachedRules),
230 usage: make(map[string]cachedUsage),
231 }
232 go c.cleanupLoop()
233 return c
234}
235
236const (
237 rulesCacheTTL = 30 * time.Second

Callers 1

quota.goFile · 0.85

Calls 1

cleanupLoopMethod · 0.95

Tested by

no test coverage detected