(c *cache, ci time.Duration)
| 1091 | } |
| 1092 | |
| 1093 | func 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 | |
| 1102 | func newCache(de time.Duration, m map[string]Item) *cache { |
| 1103 | if de == 0 { |
no test coverage detected
searching dependent graphs…