mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
Merge pull request #683 from actix/dependabot/cargo/redis-0.24.0
Bump redis from 0.23.3 to 0.24.0
This commit is contained in:
commit
5072295de5
26
Cargo.lock
generated
26
Cargo.lock
generated
@ -851,7 +851,7 @@ dependencies = [
|
||||
"chrono",
|
||||
"futures",
|
||||
"log",
|
||||
"redis",
|
||||
"redis 0.23.3",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tokio 1.34.0",
|
||||
@ -2584,7 +2584,7 @@ dependencies = [
|
||||
"actix-web",
|
||||
"env_logger",
|
||||
"log",
|
||||
"redis",
|
||||
"redis 0.24.0",
|
||||
"serde",
|
||||
]
|
||||
|
||||
@ -5990,6 +5990,28 @@ dependencies = [
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redis"
|
||||
version = "0.24.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c580d9cbbe1d1b479e8d67cf9daf6a62c957e6846048408b80b43ac3f6af84cd"
|
||||
dependencies = [
|
||||
"arc-swap",
|
||||
"async-trait",
|
||||
"bytes 1.5.0",
|
||||
"combine 4.6.6",
|
||||
"futures",
|
||||
"futures-util",
|
||||
"itoa 1.0.9",
|
||||
"percent-encoding",
|
||||
"pin-project-lite 0.2.13",
|
||||
"ryu",
|
||||
"tokio 1.34.0",
|
||||
"tokio-retry",
|
||||
"tokio-util 0.7.10",
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redis-async"
|
||||
version = "0.13.0"
|
||||
|
@ -8,5 +8,5 @@ actix-web.workspace = true
|
||||
|
||||
env_logger.workspace = true
|
||||
log.workspace = true
|
||||
redis = { version = "0.23", default-features = false, features = ["tokio-comp", "connection-manager"] }
|
||||
redis = { version = "0.24", default-features = false, features = ["tokio-comp", "connection-manager"] }
|
||||
serde.workspace = true
|
||||
|
@ -15,7 +15,7 @@ async fn cache_stuff(
|
||||
redis: web::Data<redis::Client>,
|
||||
) -> actix_web::Result<impl Responder> {
|
||||
let mut conn = redis
|
||||
.get_tokio_connection_manager()
|
||||
.get_connection_manager()
|
||||
.await
|
||||
.map_err(error::ErrorInternalServerError)?;
|
||||
|
||||
@ -38,7 +38,7 @@ async fn cache_stuff(
|
||||
|
||||
async fn del_stuff(redis: web::Data<redis::Client>) -> actix_web::Result<impl Responder> {
|
||||
let mut conn = redis
|
||||
.get_tokio_connection_manager()
|
||||
.get_connection_manager()
|
||||
.await
|
||||
.map_err(error::ErrorInternalServerError)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user