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

Method cachePut

lib/compilation-env.ts:147–150  ·  view source on GitHub ↗
(object: CacheableValue, result: object, creator: string | undefined)

Source from the content-addressed store, hash-verified

145 }
146
147 async cachePut(object: CacheableValue, result: object, creator: string | undefined) {
148 const key = BaseCache.hash(object);
149 return this.cache.put(key, JSON.stringify(result), creator);
150 }
151
152 async compilerCacheGet(object: CacheableValue) {
153 const key = BaseCache.hash(object);

Callers 4

handleExecutionMethod · 0.80
afterCompilationMethod · 0.80
afterCmakeCompilationMethod · 0.80

Calls 1

putMethod · 0.65

Tested by

no test coverage detected