Update Rust crate redis to 0.24.0 (#45)
All checks were successful
continuous-integration/drone/push Build is passing
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 ([#​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) </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:
parent
8652007906
commit
9f83183d2c
@ -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"
|
||||||
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user