S3-FIFO caching

This commit is contained in:
mdecimus
2024-12-27 19:40:33 +01:00
parent 3530b6625f
commit f2b00ccd54
33 changed files with 631 additions and 383 deletions

View File

@@ -7,7 +7,7 @@
use std::sync::Arc;
use ahash::AHashMap;
use common::{config::server::Listeners, listener::SessionData, Core, Data, Inner};
use common::{config::server::Listeners, listener::SessionData, Caches, Core, Data, Inner};
use hyper::{body, server::conn::http1, service::service_fn, Method, Uri};
use hyper_util::rt::TokioIo;
use jmap::api::{http::fetch_body, HttpResponse};
@@ -69,6 +69,7 @@ pub async fn spawn_mock_http_server(
.await
.into_shared(),
data: Data::parse(&mut settings),
cache: Caches::parse(&mut settings),
..Default::default()
});
settings.errors.clear();