updated ib handler

This commit is contained in:
Boki 2025-06-23 08:05:59 -04:00
parent 9492f1b15e
commit fbff428e90
13 changed files with 94 additions and 69 deletions

View file

@ -15,7 +15,7 @@ export class CacheFactory {
serviceName: string
): CacheProvider | null {
const baseCache = container.cradle.cache;
if (!baseCache) return null;
if (!baseCache) {return null;}
return this.createNamespacedCache(baseCache, serviceName);
}
@ -25,7 +25,7 @@ export class CacheFactory {
handlerName: string
): CacheProvider | null {
const baseCache = container.cradle.cache;
if (!baseCache) return null;
if (!baseCache) {return null;}
return this.createNamespacedCache(baseCache, `handler:${handlerName}`);
}
@ -35,7 +35,7 @@ export class CacheFactory {
prefix: string
): CacheProvider | null {
const baseCache = container.cradle.cache;
if (!baseCache) return null;
if (!baseCache) {return null;}
// Remove 'cache:' prefix if already included
const cleanPrefix = prefix.replace(/^cache:/, '');

View file

@ -32,7 +32,7 @@ export function registerApplicationServices(
if (config.proxy && config.redis.enabled) {
container.register({
proxyManager: asFunction(({ cache, logger }) => {
if (!cache) return null;
if (!cache) {return null;}
const proxyCache = new NamespacedCache(cache, 'proxy');
return new ProxyManager(proxyCache, logger);
}).singleton(),