From b2fda1308567c965486a55ac794b7974608b6d71 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 5 Apr 2022 21:01:35 -0600 Subject: [PATCH] Update LRU cache backend used for NNTP server --- core/servers/content/nntp.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/servers/content/nntp.js b/core/servers/content/nntp.js index 237c0994..7c1a263b 100644 --- a/core/servers/content/nntp.js +++ b/core/servers/content/nntp.js @@ -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 }); } diff --git a/package.json b/package.json index 4010fe90..c1ddd2a2 100644 --- a/package.json +++ b/package.json @@ -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",