Add cache for parallel HTTP requests (#4879)

This commit is contained in:
Michael Sproul
2024-01-11 17:13:43 +11:00
committed by GitHub
parent 8db17dac1d
commit 664a7784f8
21 changed files with 466 additions and 260 deletions

View File

@@ -821,6 +821,17 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.takes_value(true)
.default_value("0")
)
.arg(
Arg::with_name("parallel-state-cache-size")
.long("parallel-state-cache-size")
.value_name("N")
.help("Set the size of the cache used to de-duplicate requests for the same \
state. This cache is additional to other state caches within Lighthouse \
and should be kept small unless a large number of parallel requests for \
different states are anticipated.")
.takes_value(true)
.default_value("2")
)
/*
* Misc.