(de time.Duration, m map[string]Item)
| 1100 | } |
| 1101 | |
| 1102 | func newCache(de time.Duration, m map[string]Item) *cache { |
| 1103 | if de == 0 { |
| 1104 | de = -1 |
| 1105 | } |
| 1106 | c := &cache{ |
| 1107 | defaultExpiration: de, |
| 1108 | items: m, |
| 1109 | } |
| 1110 | return c |
| 1111 | } |
| 1112 | |
| 1113 | func newCacheWithJanitor(de time.Duration, ci time.Duration, m map[string]Item) *Cache { |
| 1114 | c := newCache(de, m) |
no outgoing calls
no test coverage detected
searching dependent graphs…