perf(api): replace polling for in-memory caches with signals (#35)

This commit is contained in:
hampus-fluxer
2026-01-06 00:22:30 +01:00
committed by GitHub
parent 9c665413ac
commit 8f9daac8b0
9 changed files with 106 additions and 38 deletions

View File

@@ -263,6 +263,8 @@ app.route('/', routes);
app.onError(AppErrorHandler);
app.notFound(AppNotFoundHandler);
const ipBanSubscriber = new Redis(Config.redis.url);
ipBanCache.setRefreshSubscriber(ipBanSubscriber);
await ipBanCache.initialize();
initializeMetricsService(Config.metrics.host ?? null);