MCPcopy Create free account
hub / github.com/patrickmn/go-cache / runJanitor

Function runJanitor

cache.go:1093–1100  ·  view source on GitHub ↗
(c *cache, ci time.Duration)

Source from the content-addressed store, hash-verified

1091}
1092
1093func runJanitor(c *cache, ci time.Duration) {
1094 j := &janitor{
1095 Interval: ci,
1096 stop: make(chan bool),
1097 }
1098 c.janitor = j
1099 go j.Run(c)
1100}
1101
1102func newCache(de time.Duration, m map[string]Item) *cache {
1103 if de == 0 {

Callers 1

newCacheWithJanitorFunction · 0.85

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…