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

Function createCacheFromConfig

lib/cache/from-config.ts:73–77  ·  view source on GitHub ↗
(name: string, config: string)

Source from the content-addressed store, hash-verified

71
72// Added some type casting to make cache-tests a little more typesafe
73export function createCacheFromConfig<TCache extends Cache = Cache>(name: string, config: string): TCache {
74 const result = createInternal(name, config);
75 logger.info(`Created cache ${name} of type ${result.details}`);
76 return result as TCache;
77}

Callers 2

constructorMethod · 0.85
cache-tests.tsFile · 0.85

Calls 1

createInternalFunction · 0.85

Tested by

no test coverage detected