diff --git a/editoast/cache/src/client.rs b/editoast/cache/src/client.rs
index 4e608e9475e..583bddea27e 100644
--- a/editoast/cache/src/client.rs
+++ b/editoast/cache/src/client.rs
@@ -36,6 +36,10 @@ pub enum Config {
}
impl Client {
+ pub fn app_version(&self) -> &str {
+ &self.app_version
+ }
+
pub fn new(config: Config, app_version: &str) -> Self {
Self {
app_version: ArcStr::from(app_version),
diff --git a/editoast/cache/src/connection.rs b/editoast/cache/src/connection.rs
index 57648bf8fc6..dfbc13ccf6c 100644
--- a/editoast/cache/src/connection.rs
+++ b/editoast/cache/src/connection.rs
@@ -208,8 +208,8 @@ impl Connection {
// Store the compressed values using mset
if !compressed_items.is_empty() {
- span!(Level::INFO, "Sending items to Redis")
- .in_scope(|| self.mset::<_, _, ()>(&compressed_items))
+ span!(Level::INFO, "Sending items to Valkey")
+ .in_scope(async || self.mset::<_, _, ()>(&compressed_items).await)
.await?;
}
Ok(())
@@ -225,8 +225,8 @@ impl Connection {
// Fetch the values from Redis
let values = if !keys.is_empty() {
- span!(Level::INFO, "Fetching values from Redis")
- .in_scope(|| self.mget::<_, Vec