feat: totally updated cache structure using lru crate instead of moka (i.e., using simpler crate)

This commit is contained in:
Jun Kurihara 2023-08-16 23:04:04 +09:00
commit 07d3accb91
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
10 changed files with 157 additions and 132 deletions

View file

@ -55,6 +55,8 @@ pub struct ProxyConfig {
pub cache_enabled: bool,
pub cache_dir: Option<PathBuf>,
pub cache_max_entry: Option<usize>,
pub cache_max_each_size: Option<usize>,
// All need to make packet acceptor
#[cfg(any(feature = "http3-quinn", feature = "http3-s2n"))]
@ -93,6 +95,8 @@ impl Default for ProxyConfig {
cache_enabled: false,
cache_dir: None,
cache_max_entry: None,
cache_max_each_size: None,
#[cfg(any(feature = "http3-quinn", feature = "http3-s2n"))]
http3: false,