chore: decrease fetcher and extractor memory cache sizes
This commit is contained in:
parent
c7e87e14b9
commit
756cd01ab9
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue