1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +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:
Rob Ede 2023-12-26 04:00:17 +00:00 committed by GitHub
commit 5072295de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 5 deletions

26
Cargo.lock generated
View File

@ -851,7 +851,7 @@ dependencies = [
"chrono", "chrono",
"futures", "futures",
"log", "log",
"redis", "redis 0.23.3",
"serde", "serde",
"serde_json", "serde_json",
"tokio 1.34.0", "tokio 1.34.0",
@ -2584,7 +2584,7 @@ dependencies = [
"actix-web", "actix-web",
"env_logger", "env_logger",
"log", "log",
"redis", "redis 0.24.0",
"serde", "serde",
] ]
@ -5990,6 +5990,28 @@ dependencies = [
"url", "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]] [[package]]
name = "redis-async" name = "redis-async"
version = "0.13.0" version = "0.13.0"

View File

@ -8,5 +8,5 @@ actix-web.workspace = true
env_logger.workspace = true env_logger.workspace = true
log.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 serde.workspace = true

View File

@ -15,7 +15,7 @@ async fn cache_stuff(
redis: web::Data<redis::Client>, redis: web::Data<redis::Client>,
) -> actix_web::Result<impl Responder> { ) -> actix_web::Result<impl Responder> {
let mut conn = redis let mut conn = redis
.get_tokio_connection_manager() .get_connection_manager()
.await .await
.map_err(error::ErrorInternalServerError)?; .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> { async fn del_stuff(redis: web::Data<redis::Client>) -> actix_web::Result<impl Responder> {
let mut conn = redis let mut conn = redis
.get_tokio_connection_manager() .get_connection_manager()
.await .await
.map_err(error::ErrorInternalServerError)?; .map_err(error::ErrorInternalServerError)?;