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

Method put

lib/s3-handler.ts:72–81  ·  view source on GitHub ↗
(key: string, value: Buffer, path: string, options: S3HandlerOptions)

Source from the content-addressed store, hash-verified

70 }
71
72 async put(key: string, value: Buffer, path: string, options: S3HandlerOptions): Promise<void> {
73 await this.instance.putObject({
74 Bucket: this.bucket,
75 Key: `${path}/${key}`,
76 Body: value,
77 StorageClass: options.redundancy || 'STANDARD',
78 Metadata: options.metadata || {},
79 Expires: options.expires,
80 });
81 }
82}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected