wip: refactoring the cache logic

This commit is contained in:
Jun Kurihara 2023-12-09 03:34:00 +09:00
commit f5197d0869
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
6 changed files with 261 additions and 22 deletions

View file

@ -24,7 +24,7 @@ http3-s2n = [
sticky-cookie = ["base64", "sha2", "chrono"]
native-tls-backend = ["hyper-tls"]
rustls-backend = []
cache = [] #"http-cache-semantics", "lru"]
cache = ["http-cache-semantics", "lru"]
native-roots = [] #"hyper-rustls/native-tokio"]
[dependencies]
@ -66,7 +66,7 @@ hyper-tls = { version = "0.6.0", features = ["alpn"], optional = true }
# tls and cert management for server
hot_reload = "0.1.4"
rustls = { version = "0.21.9", default-features = false }
rustls = { version = "0.21.10", default-features = false }
tokio-rustls = { version = "0.24.1", features = ["early-data"] }
webpki = "0.22.4"
x509-parser = "0.15.1"
@ -88,8 +88,8 @@ s2n-quic-rustls = { version = "0.32.0", optional = true }
socket2 = { version = "0.5.5", features = ["all"], optional = true }
# # cache
# http-cache-semantics = { path = "../submodules/rusty-http-cache-semantics/", optional = true }
# lru = { version = "0.12.1", optional = true }
http-cache-semantics = { path = "../submodules/rusty-http-cache-semantics/", optional = true }
lru = { version = "0.12.1", optional = true }
# cookie handling for sticky cookie
chrono = { version = "0.4.31", default-features = false, features = [