MCPcopy Index your code
hub / github.com/coder/coder / LeakCache

Struct LeakCache

coderd/files/cache_internal_test.go:13–15  ·  view source on GitHub ↗

LeakCache prevents entries from even being released to enable testing certain behaviors.

Source from the content-addressed store, hash-verified

11// LeakCache prevents entries from even being released to enable testing certain
12// behaviors.
13type LeakCache struct {
14 *Cache
15}
16
17func (c *LeakCache) Acquire(ctx context.Context, db database.Store, fileID uuid.UUID) (*CloseFS, error) {
18 // We need to call prepare first to both 1. leak a reference and 2. prevent

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected