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

Method getInternal

lib/cache/in-memory.ts:49–52  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

47 }
48
49 override async getInternal(key: string): Promise<GetResult> {
50 const cached = this.cache.get(key);
51 return {hit: !!cached, data: cached};
52 }
53
54 override async putInternal(key: string, value: Buffer): Promise<void> {
55 this.cache.set(key, value);

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected