fix type errors

Signed-off-by: Shijun Wang <shijun@shijun.dev>
This commit is contained in:
Shijun Wang
2025-09-08 13:32:43 +03:00
parent 4eda590b6a
commit 0b9278c623
@@ -222,14 +222,15 @@ export class CacheManager {
*/
private static constructNamespace(
pluginId: string,
storeOptions: CacheStoreOptions | undefined,
storeOptions: RedisCacheStoreOptions | undefined,
): string {
if (storeOptions?.client?.namespace) {
const separator = storeOptions.client.keyPrefixSeparator ?? ':';
return `${storeOptions.client.namespace}${separator}${pluginId}`;
}
const prefix = storeOptions?.client?.namespace
? `${storeOptions.client.namespace}${
storeOptions.client.keyPrefixSeparator ?? ':'
}`
: '';
return pluginId;
return `${prefix}${pluginId}`;
}
/** @internal */