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

Function NewUnorderedCache

pkg/util/cache/cache.go:357–363  ·  view source on GitHub ↗

NewUnorderedCache creates a new UnorderedCache backed by a hash map.

(config Config)

Source from the content-addressed store, hash-verified

355
356// NewUnorderedCache creates a new UnorderedCache backed by a hash map.
357func NewUnorderedCache(config Config) *UnorderedCache {
358 mc := &UnorderedCache{
359 baseCache: newBaseCache(config),
360 }
361 mc.baseCache.init(mc)
362 return mc
363}
364
365// Implementation of cacheStore interface.
366func (mc *UnorderedCache) init() {

Callers 1

NewRegexpCacheFunction · 0.92

Calls 2

newBaseCacheFunction · 0.85
initMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…