MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NewKey

Method NewKey

pkg/util/cache/cache.go:576–579  ·  view source on GitHub ↗

NewKey creates a new interval key defined by start and end values.

(start, end []byte)

Source from the content-addressed store, hash-verified

574
575// NewKey creates a new interval key defined by start and end values.
576func (ic *IntervalCache) NewKey(start, end []byte) *IntervalKey {
577 k := ic.MakeKey(start, end)
578 return &k
579}
580
581// MakeKey creates a new interval key defined by start and end values.
582func (ic *IntervalCache) MakeKey(start, end []byte) IntervalKey {

Callers

nothing calls this directly

Calls 1

MakeKeyMethod · 0.95

Tested by

no test coverage detected