From 9d6d138fff8a2240f87b227a506fe3ecebd0f677 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Wed, 14 Jan 2026 11:58:42 +0000 Subject: [PATCH] chore(extractor): make lazyUrlResultCache non-blocking and add stats --- src/extractor/ExtractorRegistry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/extractor/ExtractorRegistry.ts b/src/extractor/ExtractorRegistry.ts index f93bf38..bd0772e 100644 --- a/src/extractor/ExtractorRegistry.ts +++ b/src/extractor/ExtractorRegistry.ts @@ -24,14 +24,17 @@ export class ExtractorRegistry { stats: true, }); this.lazyUrlResultCache = new Cacheable({ + nonBlocking: true, primary: new Keyv({ store: new CacheableMemory({ lruSize: 1024 }) }), secondary: new Keyv(new KeyvSqlite(`sqlite://${getCacheDir()}/webstreamr-extractor-lazy-cache.sqlite`)), + stats: true, }); } public stats() { return { urlResultCache: this.urlResultCache.stats, + lazyUrlResultCache: this.lazyUrlResultCache.stats, }; };