Update LRU cache backend used for NNTP server
This commit is contained in:
parent
35047dabca
commit
b2fda13085
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"ini-config-parser": "^1.0.4",
|
||||
"inquirer": "^8.2.2",
|
||||
"lodash": "4.17.21",
|
||||
"lru-cache": "6.0.0",
|
||||
"lru-cache": "^7.7.3",
|
||||
"mime-types": "^2.1.35",
|
||||
"minimist": "^1.2.6",
|
||||
"moment": "^2.29.2",
|
||||
|
|
Loading…
Reference in New Issue