Update Rust crate redis to 0.24.0 (#45)
All checks were successful
continuous-integration/drone/push Build is passing

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

<details>
<summary>redis-rs/redis-rs (redis)</summary>

### [`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 ([#&#8203;858](https://github.com/redis-rs/redis-rs/pull/858) [@&#8203;sp-angel](https://github.com/sp-angel))
-   Implement `FromRedisValue` for `Box<[T]>` and `Arc<[T]>` ([#&#8203;799](https://github.com/redis-rs/redis-rs/pull/799) [@&#8203;JOT85](https://github.com/JOT85))
-   Sync Cluster: support multi-slot operations. ([#&#8203;967](https://github.com/redis-rs/redis-rs/pull/967))
-   Execute multi-node requests using try_request. ([#&#8203;919](https://github.com/redis-rs/redis-rs/pull/919))
-   Sorted set blocking commands ([#&#8203;962](https://github.com/redis-rs/redis-rs/pull/962) [@&#8203;gheorghitamutu](https://github.com/gheorghitamutu))
-   Allow passing routing information to cluster. ([#&#8203;899](https://github.com/redis-rs/redis-rs/pull/899))
-   Add `tcp_nodelay` feature ([#&#8203;941](https://github.com/redis-rs/redis-rs/pull/941) [@&#8203;PureWhiteWu](https://github.com/PureWhiteWu))
-   Add support for multi-shard commands. ([#&#8203;900](https://github.com/redis-rs/redis-rs/pull/900))

##### Changes

-   Order in usage of ClusterParams. ([#&#8203;997](https://github.com/redis-rs/redis-rs/pull/997))
-   **Breaking change**: Fix StreamId::contains_key signature ([#&#8203;783](https://github.com/redis-rs/redis-rs/pull/783) [@&#8203;Ayush1325](https://github.com/Ayush1325))
-   **Breaking change**: Update Command expiration values to be an appropriate type ([#&#8203;589](https://github.com/redis-rs/redis-rs/pull/589) [@&#8203;joshleeb](https://github.com/joshleeb))
-   **Breaking change**: Bump aHash to v0.8.6 ([#&#8203;966](https://github.com/redis-rs/redis-rs/pull/966) [@&#8203;aumetra](https://github.com/aumetra))
-   Fix features for `load_native_certs`. ([#&#8203;996](https://github.com/redis-rs/redis-rs/pull/996))
-   Revert redis-test versioning changes ([#&#8203;993](https://github.com/redis-rs/redis-rs/pull/993))
-   Tests: Add retries to test cluster creation ([#&#8203;994](https://github.com/redis-rs/redis-rs/pull/994))
-   Fix sync cluster behavior with transactions. ([#&#8203;983](https://github.com/redis-rs/redis-rs/pull/983))
-   Sync Pub/Sub - cache received pub/sub messages. ([#&#8203;910](https://github.com/redis-rs/redis-rs/pull/910))
-   Prefer routing to primary in a transaction. ([#&#8203;986](https://github.com/redis-rs/redis-rs/pull/986))
-   Accept iterator at `ClusterClient` initialization ([#&#8203;987](https://github.com/redis-rs/redis-rs/pull/987) [@&#8203;ruanpetterson](https://github.com/ruanpetterson))
-   **Breaking change**: Change timeouts from usize and isize to f64 ([#&#8203;988](https://github.com/redis-rs/redis-rs/pull/988) [@&#8203;eythorhel19](https://github.com/eythorhel19))
-   Update minimal rust version to 1.6.5 ([#&#8203;982](https://github.com/redis-rs/redis-rs/pull/982))
-   Disable JSON module tests for redis 6.2.4. ([#&#8203;980](https://github.com/redis-rs/redis-rs/pull/980))
-   Add connection string examples ([#&#8203;976](https://github.com/redis-rs/redis-rs/pull/976) [@&#8203;NuclearOreo](https://github.com/NuclearOreo))
-   Move response policy into multi-node routing. ([#&#8203;952](https://github.com/redis-rs/redis-rs/pull/952))
-   Added functions that allow tests to check version. ([#&#8203;963](https://github.com/redis-rs/redis-rs/pull/963))
-   Fix XREADGROUP command ordering as per Redis Docs, and compatibility with Upstash Redis ([#&#8203;960](https://github.com/redis-rs/redis-rs/pull/960) [@&#8203;prabhpreet](https://github.com/prabhpreet))
-   Optimize make_pipeline_results by pre-allocate memory ([#&#8203;957](https://github.com/redis-rs/redis-rs/pull/957) [@&#8203;PureWhiteWu](https://github.com/PureWhiteWu))
-   Run module tests sequentially.  ([#&#8203;956](https://github.com/redis-rs/redis-rs/pull/956))
-   Log cluster creation output in tests. ([#&#8203;955](https://github.com/redis-rs/redis-rs/pull/955))
-   CI: Update and use better maintained github actions. ([#&#8203;954](https://github.com/redis-rs/redis-rs/pull/954))
-   Call CLIENT SETINFO on new connections. ([#&#8203;945](https://github.com/redis-rs/redis-rs/pull/945))
-   Deprecate functions that erroneously use `tokio` in their name. ([#&#8203;913](https://github.com/redis-rs/redis-rs/pull/913))
-   CI: Increase timeouts and use newer redis. ([#&#8203;949](https://github.com/redis-rs/redis-rs/pull/949))
-   Remove redis version from redis-test. ([#&#8203;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)

</details>

---

### 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44OS40IiwidXBkYXRlZEluVmVyIjoiMzcuOTEuNCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->

Reviewed-on: #45
This commit is contained in:
Pierre HUBERT 2024-03-04 09:06:19 +00:00
parent 8652007906
commit 9f83183d2c
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.194", features = ["derive"] } serde = { version = "1.0.194", features = ["derive"] }
serde_json = "1.0.110" serde_json = "1.0.110"
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(())
} }