MCPcopy Create free account
hub / github.com/brimdata/super / NewCache

Function NewCache

runtime/vcache/cache.go:25–31  ·  view source on GitHub ↗
(engine storage.Engine)

Source from the content-addressed store, hash-verified

23}
24
25func NewCache(engine storage.Engine) *Cache {
26 return &Cache{
27 engine: engine,
28 objects: make(map[ksuid.KSUID]*Object),
29 locks: make(map[ksuid.KSUID]*sync.Mutex),
30 }
31}
32
33func (c *Cache) lock(id ksuid.KSUID) {
34 c.mu.Lock()

Callers 2

RunMethod · 0.92
newRootFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected