Skip to content

Commit 840b511

Browse files
committed
fix: include namespace in cache key generation for cachedFunction
1 parent 0f81445 commit 840b511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function cachedFunction<F extends CacheableFunction>(function_: F, option
125125
};
126126
}
127127

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

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

0 commit comments

Comments
 (0)