Update LRU cache backend used for NNTP server

This commit is contained in:
Bryan Ashby 2022-04-05 21:01:35 -06:00
parent 35047dabca
commit b2fda13085
No known key found for this signature in database
GPG key ID: C2C1B501E4EFD994
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ class NNTPServer extends NNTPServerBase {
const config = Config();
this.groupCache = new LRU({
max : _.get(config, 'contentServers.nntp.cache.maxItems', 200),
maxAge : _.get(config, 'contentServers.nntp.cache.maxAge', 1000 * 30), // default=30s
ttl : _.get(config, 'contentServers.nntp.cache.maxAge', 1000 * 30), // default=30s
});
}