From 649bababe740aae717fbfd30fc0b4af8f7676a17 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Fri, 19 Jun 2026 17:49:45 -0500 Subject: [PATCH] Refactor cache storage to use cacheCommandOutput for consistency --- lib/entry-points.js | 2 +- src/cache.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/entry-points.js b/lib/entry-points.js index e3ad62295..aff18c1a4 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -149957,7 +149957,7 @@ function getCachedCommandOutput(key, cmd, validate) { if (!isObject(entry) || !isString(entry.cmd) || cmd !== void 0 && entry.cmd !== cmd || validate !== void 0 && !validate(entry.output)) { return void 0; } - inMemoryCache.set(key, { cmd: entry.cmd, output: entry.output }); + cacheCommandOutput(key, entry.cmd, entry.output); return entry.output; } diff --git a/src/cache.ts b/src/cache.ts index 32ec7f986..df8b69d8b 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -125,7 +125,7 @@ export function getCachedCommandOutput( } // Memoize so subsequent lookups in this process hit tier 1. - inMemoryCache.set(key, { cmd: entry.cmd, output: entry.output }); + cacheCommandOutput(key, entry.cmd, entry.output); return entry.output as T; }