MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getInternal

Method getInternal

lib/cache/s3.ts:65–72  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

63 }
64
65 override async getInternal(key: string): Promise<GetResult> {
66 try {
67 return await this.s3.get(key, this.path);
68 } catch (e) {
69 this.onError(e, 'read');
70 return {hit: false};
71 }
72 }
73
74 override async putInternal(key: string, value: Buffer, creator?: string): Promise<void> {
75 const options: S3HandlerOptions = {

Callers 1

getFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected