NewIntervalCache creates a new Cache backed by an interval tree. See NewCache() for details on parameters.
(config Config, logErrorf IntervalCacheLogErrorf)
| 564 | // NewIntervalCache creates a new Cache backed by an interval tree. |
| 565 | // See NewCache() for details on parameters. |
| 566 | func NewIntervalCache(config Config, logErrorf IntervalCacheLogErrorf) *IntervalCache { |
| 567 | ic := &IntervalCache{ |
| 568 | baseCache: newBaseCache(config), |
| 569 | logErrorf: logErrorf, |
| 570 | } |
| 571 | ic.baseCache.init(ic) |
| 572 | return ic |
| 573 | } |
| 574 | |
| 575 | // NewKey creates a new interval key defined by start and end values. |
| 576 | func (ic *IntervalCache) NewKey(start, end []byte) *IntervalKey { |
nothing calls this directly
no test coverage detected
searching dependent graphs…