Update Rust crate redis to 0.24.0 #45
@ -20,7 +20,7 @@ diesel = { version = "2.1.4", features = ["postgres"] }
|
||||
serde = { version = "1.0.193", features = ["derive"] }
|
||||
serde_json = "1.0.108"
|
||||
mailchecker = "6.0.1"
|
||||
redis = "0.23.3"
|
||||
redis = "0.24.0"
|
||||
lettre = "0.11.2"
|
||||
rand = "0.8.5"
|
||||
bcrypt = "0.15.0"
|
||||
|
@ -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())?))?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user