(c *cache, ci time.Duration)
| 248 | } |
| 249 | |
| 250 | func 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 | |
| 261 | func newCache(de time.Duration, m map[string]Item) *cache { |
| 262 | if de == 0 { |
no test coverage detected