MCPcopy Create free account
hub / github.com/TalkingData/owl / New

Function New

controller/cache/cache.go:283–286  ·  view source on GitHub ↗
(defaultExpiration, cleanupInterval time.Duration)

Source from the content-addressed store, hash-verified

281}
282
283func New(defaultExpiration, cleanupInterval time.Duration) *Cache {
284 items := make(map[string]Item)
285 return newCacheWithJanitor(defaultExpiration, cleanupInterval, items)
286}

Callers

nothing calls this directly

Calls 1

newCacheWithJanitorFunction · 0.85

Tested by

no test coverage detected