chore: decrease fetcher and extractor memory cache sizes

This commit is contained in:
WebStreamr 2025-09-03 14:39:11 +00:00
parent c7e87e14b9
commit 756cd01ab9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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,
});

View file

@ -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,
});