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

Method init

pkg/util/cache/cache.go:196–200  ·  view source on GitHub ↗

init initializes the baseCache with the provided cacheStore. It must be called with a non-nil cacheStore before use of the cache.

(store cacheStore)

Source from the content-addressed store, hash-verified

194// init initializes the baseCache with the provided cacheStore. It must be
195// called with a non-nil cacheStore before use of the cache.
196func (bc *baseCache) init(store cacheStore) {
197 bc.ll.init()
198 bc.store = store
199 bc.store.init()
200}
201
202// Add adds a value to the cache.
203func (bc *baseCache) Add(key, value interface{}) {

Callers

nothing calls this directly

Calls 1

initMethod · 0.65

Tested by

no test coverage detected