diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index d3f8692..71276b0 100644 --- a/geneit_backend/src/connections/redis_connection.rs +++ b/geneit_backend/src/connections/redis_connection.rs @@ -45,7 +45,7 @@ where { let value_str = serde_json::to_string(value)?; - execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs() as usize)?))?; + execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs() as u64)?))?; Ok(()) }