(de time.Duration, m map[string]Item)
| 1118 | } |
| 1119 | |
| 1120 | func newCache(de time.Duration, m map[string]Item) *cache { |
| 1121 | if de == 0 { |
| 1122 | de = -1 |
| 1123 | } |
| 1124 | c := &cache{ |
| 1125 | defaultExpiration: de, |
| 1126 | items: m, |
| 1127 | } |
| 1128 | return c |
| 1129 | } |
| 1130 | |
| 1131 | func newCacheWithJanitor(de time.Duration, ci time.Duration, m map[string]Item) *Cache { |
| 1132 | c := newCache(de, m) |
no outgoing calls
no test coverage detected