Open zimbatm opened 4 years ago
When multiple clients access the same NAR file at the same time, we could download the file from the S3 bucket only once.
type CachedBinaryCacheReader struct { Reader BinaryCacheReader Lock map[string]io.ReaderCloser Mutex sync.Mutex } func (r CachedBinaryCacheReader) GetFile(ctx context.Context, path string) (io.ReadCloser, error) { }
Duplicate of #4?
When multiple clients access the same NAR file at the same time, we could download the file from the S3 bucket only once.