MCPcopy Create free account
hub / github.com/AdRoll/baker / Load

Method Load

filter/metadata/cache.go:38–40  ·  view source on GitHub ↗

Load loads from the cache the value that is mapped to key, or bool if the cache doesn't contain key.

(key interface{})

Source from the content-addressed store, hash-verified

36// Load loads from the cache the value that is mapped to key, or bool if
37// the cache doesn't contain key.
38func (c *Cache) Load(key interface{}) (value interface{}, ok bool) {
39 return c.cache.Load(key)
40}
41
42// clear must be called with lock already held!
43func (c *Cache) clear() int64 {

Callers 5

TestCacheFunction · 0.95
ErrorMethod · 0.80
uploadDirectoryMethod · 0.80
ProcessMethod · 0.80
RunMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestCacheFunction · 0.76