From 9f83183d2c788425679bcbebf49e4fe6ce92c4a6 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 4 Mar 2024 09:06:19 +0000 Subject: [PATCH] Update Rust crate redis to 0.24.0 (#45) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [redis](https://github.com/redis-rs/redis-rs) | dependencies | minor | `0.23.3` -> `0.24.0` | --- ### Release Notes
redis-rs/redis-rs (redis) ### [`v0.24.0`](https://github.com/redis-rs/redis-rs/releases/tag/redis-0.24.0): v0.24.0 [Compare Source](https://github.com/redis-rs/redis-rs/compare/redis-0.23.4...redis-0.24.0) ##### 0.24.0 (2023-12-05) ##### Features - **Breaking change**: Support Mutual TLS ([#​858](https://github.com/redis-rs/redis-rs/pull/858) [@​sp-angel](https://github.com/sp-angel)) - Implement `FromRedisValue` for `Box<[T]>` and `Arc<[T]>` ([#​799](https://github.com/redis-rs/redis-rs/pull/799) [@​JOT85](https://github.com/JOT85)) - Sync Cluster: support multi-slot operations. ([#​967](https://github.com/redis-rs/redis-rs/pull/967)) - Execute multi-node requests using try_request. ([#​919](https://github.com/redis-rs/redis-rs/pull/919)) - Sorted set blocking commands ([#​962](https://github.com/redis-rs/redis-rs/pull/962) [@​gheorghitamutu](https://github.com/gheorghitamutu)) - Allow passing routing information to cluster. ([#​899](https://github.com/redis-rs/redis-rs/pull/899)) - Add `tcp_nodelay` feature ([#​941](https://github.com/redis-rs/redis-rs/pull/941) [@​PureWhiteWu](https://github.com/PureWhiteWu)) - Add support for multi-shard commands. ([#​900](https://github.com/redis-rs/redis-rs/pull/900)) ##### Changes - Order in usage of ClusterParams. ([#​997](https://github.com/redis-rs/redis-rs/pull/997)) - **Breaking change**: Fix StreamId::contains_key signature ([#​783](https://github.com/redis-rs/redis-rs/pull/783) [@​Ayush1325](https://github.com/Ayush1325)) - **Breaking change**: Update Command expiration values to be an appropriate type ([#​589](https://github.com/redis-rs/redis-rs/pull/589) [@​joshleeb](https://github.com/joshleeb)) - **Breaking change**: Bump aHash to v0.8.6 ([#​966](https://github.com/redis-rs/redis-rs/pull/966) [@​aumetra](https://github.com/aumetra)) - Fix features for `load_native_certs`. ([#​996](https://github.com/redis-rs/redis-rs/pull/996)) - Revert redis-test versioning changes ([#​993](https://github.com/redis-rs/redis-rs/pull/993)) - Tests: Add retries to test cluster creation ([#​994](https://github.com/redis-rs/redis-rs/pull/994)) - Fix sync cluster behavior with transactions. ([#​983](https://github.com/redis-rs/redis-rs/pull/983)) - Sync Pub/Sub - cache received pub/sub messages. ([#​910](https://github.com/redis-rs/redis-rs/pull/910)) - Prefer routing to primary in a transaction. ([#​986](https://github.com/redis-rs/redis-rs/pull/986)) - Accept iterator at `ClusterClient` initialization ([#​987](https://github.com/redis-rs/redis-rs/pull/987) [@​ruanpetterson](https://github.com/ruanpetterson)) - **Breaking change**: Change timeouts from usize and isize to f64 ([#​988](https://github.com/redis-rs/redis-rs/pull/988) [@​eythorhel19](https://github.com/eythorhel19)) - Update minimal rust version to 1.6.5 ([#​982](https://github.com/redis-rs/redis-rs/pull/982)) - Disable JSON module tests for redis 6.2.4. ([#​980](https://github.com/redis-rs/redis-rs/pull/980)) - Add connection string examples ([#​976](https://github.com/redis-rs/redis-rs/pull/976) [@​NuclearOreo](https://github.com/NuclearOreo)) - Move response policy into multi-node routing. ([#​952](https://github.com/redis-rs/redis-rs/pull/952)) - Added functions that allow tests to check version. ([#​963](https://github.com/redis-rs/redis-rs/pull/963)) - Fix XREADGROUP command ordering as per Redis Docs, and compatibility with Upstash Redis ([#​960](https://github.com/redis-rs/redis-rs/pull/960) [@​prabhpreet](https://github.com/prabhpreet)) - Optimize make_pipeline_results by pre-allocate memory ([#​957](https://github.com/redis-rs/redis-rs/pull/957) [@​PureWhiteWu](https://github.com/PureWhiteWu)) - Run module tests sequentially. ([#​956](https://github.com/redis-rs/redis-rs/pull/956)) - Log cluster creation output in tests. ([#​955](https://github.com/redis-rs/redis-rs/pull/955)) - CI: Update and use better maintained github actions. ([#​954](https://github.com/redis-rs/redis-rs/pull/954)) - Call CLIENT SETINFO on new connections. ([#​945](https://github.com/redis-rs/redis-rs/pull/945)) - Deprecate functions that erroneously use `tokio` in their name. ([#​913](https://github.com/redis-rs/redis-rs/pull/913)) - CI: Increase timeouts and use newer redis. ([#​949](https://github.com/redis-rs/redis-rs/pull/949)) - Remove redis version from redis-test. ([#​943](https://github.com/redis-rs/redis-rs/pull/943)) ### [`v0.23.4`](https://github.com/redis-rs/redis-rs/compare/redis-0.23.3...redis-0.23.4) [Compare Source](https://github.com/redis-rs/redis-rs/compare/redis-0.23.3...redis-0.23.4)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.communiquons.org/pierre/GeneIT/pulls/45 --- geneit_backend/Cargo.toml | 2 +- geneit_backend/src/connections/redis_connection.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geneit_backend/Cargo.toml b/geneit_backend/Cargo.toml index 78d7b38..eb02be0 100644 --- a/geneit_backend/Cargo.toml +++ b/geneit_backend/Cargo.toml @@ -20,7 +20,7 @@ diesel = { version = "2.1.4", features = ["postgres"] } serde = { version = "1.0.194", features = ["derive"] } serde_json = "1.0.110" mailchecker = "6.0.1" -redis = "0.23.3" +redis = "0.24.0" lettre = "0.11.2" rand = "0.8.5" bcrypt = "0.15.0" diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index d3f8692..a2d6872 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())?))?; Ok(()) }