MCPcopy
hub / github.com/willnorris/imageproxy / cache

Struct cache

internal/gcscache/gcscache.go:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20var ctx = context.Background()
21
22type cache struct {
23 bucket *storage.BucketHandle
24 prefix string
25}
26
27func (c *cache) Get(key string) ([]byte, bool) {
28 r, err := c.object(key).NewReader(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected