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

Struct OrderedCache

pkg/util/cache/cache.go:392–395  ·  view source on GitHub ↗

OrderedCache is a cache which supports binary searches using Ceil and Floor methods. It is backed by a left-leaning red black tree. See comments in UnorderedCache for more details on cache functionality. OrderedCache requires that keys implement llrb.Comparable. OrderedCache is not safe for concur

Source from the content-addressed store, hash-verified

390//
391// OrderedCache is not safe for concurrent access.
392type OrderedCache struct {
393 baseCache
394 llrb llrb.Tree
395}
396
397// NewOrderedCache creates a new Cache backed by a left-leaning red
398// black binary tree which supports binary searches via the Ceil() and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected