File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import cluster from 'cluster';
12
12
import hash from 'object-hash' ;
13
13
import safe from 'safetimeout' ;
14
14
import * as letsencrypt from './letsencrypt.mjs' ;
15
+ import { LRUCache } from 'lru-cache' ;
16
+
17
+ const routeCache = new LRUCache ( { max : 5000 } ) ;
15
18
16
19
import tls from 'tls' ;
17
20
Original file line number Diff line number Diff line change 34
34
"le-challenge-fs" : " ^2.0.9" ,
35
35
"le-store-certbot" : " ^2.2.3" ,
36
36
"lodash" : " ^4.17.15" ,
37
+ "lru-cache" : " ^11.0.1" ,
37
38
"node-etcd" : " ^7.0.0" ,
38
39
"object-hash" : " ^1.3.1" ,
39
40
"pino" : " ^9.4.0" ,
Original file line number Diff line number Diff line change @@ -1971,6 +1971,11 @@ lru-cache@2:
1971
1971
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz"
1972
1972
integrity sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=
1973
1973
1974
+ lru-cache@^11.0.1 :
1975
+ version "11.0.1"
1976
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.0.1.tgz#3a732fbfedb82c5ba7bca6564ad3f42afcb6e147"
1977
+ integrity sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==
1978
+
1974
1979
magic-string@^0.30.10 :
1975
1980
version "0.30.11"
1976
1981
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.11.tgz#301a6f93b3e8c2cb13ac1a7a673492c0dfd12954"
You can’t perform that action at this time.
0 commit comments