MCPcopy
hub / github.com/chartbrew/chartbrew / setSourceCache

Method setSourceCache

server/modules/runtimeCache.js:449–457  ·  view source on GitHub ↗
(params = {})

Source from the content-addressed store, hash-verified

447 }
448
449 async setSourceCache(params = {}) {
450 return this.setCacheEntry({
451 cacheKey: this.sourceCacheKey(params),
452 payload: params.payload,
453 ttlMs: RUNTIME_CACHE_CONFIG.sourceCacheTtlMs,
454 staleTtlMs: RUNTIME_CACHE_CONFIG.sourceCacheStaleTtlMs,
455 registryKey: this.registryKey("dataset", params.datasetId),
456 });
457 }
458
459 async getCacheEntry({ cacheKey, cacheType }) {
460 try {

Callers 1

runRequestMethod · 0.80

Calls 3

setCacheEntryMethod · 0.95
sourceCacheKeyMethod · 0.95
registryKeyMethod · 0.95

Tested by

no test coverage detected