MCPcopy Create free account
hub / github.com/evilsocket/sum / Get

Method Get

service/cache.go:18–22  ·  view source on GitHub ↗
(id uint64)

Source from the content-addressed store, hash-verified

16}
17
18func (cc *compiledCache) Get(id uint64) *compiled {
19 cc.RLock()
20 defer cc.RUnlock()
21 return cc.cache[id]
22}
23
24func (cc *compiledCache) Add(id uint64, c *compiled) {
25 cc.Lock()

Callers 2

RunMethod · 0.45
RunMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected