(de time.Duration, m map[string]Item)
| 259 | } |
| 260 | |
| 261 | func newCache(de time.Duration, m map[string]Item) *cache { |
| 262 | if de == 0 { |
| 263 | de = -1 |
| 264 | } |
| 265 | c := &cache{ |
| 266 | defaultExpiration: de, |
| 267 | items: m, |
| 268 | } |
| 269 | return c |
| 270 | } |
| 271 | |
| 272 | func newCacheWithJanitor(defaultExpiration time.Duration, cleanupInterval time.Duration, items map[string]Item) *Cache { |
| 273 | c := newCache(defaultExpiration, items) |
no outgoing calls
no test coverage detected