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

Function runJanitor

controller/cache/cache.go:250–259  ·  view source on GitHub ↗
(c *cache, ci time.Duration)

Source from the content-addressed store, hash-verified

248}
249
250func runJanitor(c *cache, ci time.Duration) {
251 j := &janitor{
252 Interval: ci,
253 }
254
255 c.janitor = j
256
257 go j.Run(c)
258
259}
260
261func newCache(de time.Duration, m map[string]Item) *cache {
262 if de == 0 {

Callers 1

newCacheWithJanitorFunction · 0.85

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected