Update Rust crate redis to 0.24.0 #45

Merged
pierre merged 3 commits from renovate/redis-0.x into master 2024-03-04 09:06:21 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ diesel = { version = "2.1.4", features = ["postgres"] }
serde = { version = "1.0.193", features = ["derive"] } serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108" serde_json = "1.0.108"
mailchecker = "6.0.1" mailchecker = "6.0.1"
redis = "0.23.3" redis = "0.24.0"
lettre = "0.11.2" lettre = "0.11.2"
rand = "0.8.5" rand = "0.8.5"
bcrypt = "0.15.0" bcrypt = "0.15.0"

View File

@ -45,7 +45,7 @@ where
{ {
let value_str = serde_json::to_string(value)?; 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())?))?;
Ok(()) Ok(())
} }