From 756cd01ab910cef167bc78c2bf895c2cf992677d Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:39:11 +0000 Subject: [PATCH] chore: decrease fetcher and extractor memory cache sizes --- src/extractor/ExtractorRegistry.ts | 2 +- src/utils/Fetcher.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extractor/ExtractorRegistry.ts b/src/extractor/ExtractorRegistry.ts index fbbae2a..79bf3d8 100644 --- a/src/extractor/ExtractorRegistry.ts +++ b/src/extractor/ExtractorRegistry.ts @@ -16,7 +16,7 @@ export class ExtractorRegistry { this.extractors = extractors; this.urlResultCache = new Cacheable({ - primary: new Keyv({ store: new CacheableMemory({ lruSize: 4096 }) }), + primary: new Keyv({ store: new CacheableMemory({ lruSize: 1024 }) }), secondary: new Keyv(new KeyvSqlite(`sqlite://${getCacheDir()}/webstreamr-extractor-cache.sqlite`)), stats: true, }); diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index 145fa33..de4e619 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -64,7 +64,7 @@ export class Fetcher { private readonly logger: winston.Logger; private readonly httpCache = new Cacheable({ - primary: new Keyv({ store: new CacheableMemory({ lruSize: 2048 }) }), + primary: new Keyv({ store: new CacheableMemory({ lruSize: 1024 }) }), stats: true, });