Skip to content

Commit

Permalink
fix: include namespace in cache key generation for cachedFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerh2001 committed Nov 28, 2024
1 parent 0f81445 commit 840b511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function cachedFunction<F extends CacheableFunction>(function_: F, option
};
}

const cacheKey = selectorToCacheKey(arguments_, cacheOptions.selector!);
const cacheKey = selectorToCacheKey(arguments_, cacheOptions.selector!, cacheOptions.namespace);
const cache = await getOrInitializeCache(options as CachedFunctionInitializerOptions);

logger.trace({cacheKey}, 'Checking cache');
Expand Down

0 comments on commit 840b511

Please sign in to comment.