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

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

No files matched your search

+2
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);