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

Method Add

pkg/util/cache/cache.go:203–205  ·  view source on GitHub ↗

Add adds a value to the cache.

(key, value interface{})

Source from the content-addressed store, hash-verified

201
202// Add adds a value to the cache.
203func (bc *baseCache) Add(key, value interface{}) {
204 bc.add(key, value, nil, nil)
205}
206
207// AddEntry adds a value to the cache. It provides an alternative interface to
208// Add which the caller can use to reduce allocations by bundling the Entry

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected