Skip to content

Commit 6a0c4c3

Browse files
committed
release-0.23.0-beta.1
1 parent 0481cb6 commit 6a0c4c3

File tree

5 files changed

+60
-13
lines changed

5 files changed

+60
-13
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The crate is called `redis` and you can depend on it via cargo:
1414

1515
```ini
1616
[dependencies]
17-
redis = "0.22.3"
17+
redis = "0.23.0"
1818
```
1919

2020
Documentation on the library can be found at
@@ -56,24 +56,24 @@ To enable asynchronous clients, enable the relevant feature in your Cargo.toml,
5656

5757
```
5858
# if you use tokio
59-
redis = { version = "0.22.3", features = ["tokio-comp"] }
59+
redis = { version = "0.23.0", features = ["tokio-comp"] }
6060
6161
# if you use async-std
62-
redis = { version = "0.22.3", features = ["async-std-comp"] }
62+
redis = { version = "0.23.0", features = ["async-std-comp"] }
6363
```
6464

6565
## TLS Support
6666

6767
To enable TLS support, you need to use the relevant feature entry in your Cargo.toml.
6868

6969
```
70-
redis = { version = "0.22.3", features = ["tls"] }
70+
redis = { version = "0.23.0", features = ["tls"] }
7171
7272
# if you use tokio
73-
redis = { version = "0.22.3", features = ["tokio-native-tls-comp"] }
73+
redis = { version = "0.23.0", features = ["tokio-native-tls-comp"] }
7474
7575
# if you use async-std
76-
redis = { version = "0.22.3", features = ["async-std-tls-comp"] }
76+
redis = { version = "0.23.0", features = ["async-std-tls-comp"] }
7777
```
7878

7979
then you should be able to connect to a redis instance using the `rediss://` URL scheme:
@@ -86,7 +86,7 @@ let client = redis::Client::open("rediss://127.0.0.1/")?;
8686

8787
Support for Redis Cluster can be enabled by enabling the `cluster` feature in your Cargo.toml:
8888

89-
`redis = { version = "0.22.3", features = [ "cluster"] }`
89+
`redis = { version = "0.23.0", features = [ "cluster"] }`
9090

9191
Then you can simply use the `ClusterClient`, which accepts a list of available nodes. Note
9292
that only one node in the cluster needs to be specified when instantiating the client, though
@@ -109,7 +109,7 @@ fn fetch_an_integer() -> String {
109109
Async Redis Cluster support can be enabled by enabling the `cluster-async` feature, along
110110
with your preferred async runtime, e.g.:
111111

112-
`redis = { version = "0.22.3", features = [ "cluster-async", "tokio-std-comp" ] }`
112+
`redis = { version = "0.23.0", features = [ "cluster-async", "tokio-std-comp" ] }`
113113

114114
```rust
115115
use redis::cluster::ClusterClient;
@@ -129,7 +129,7 @@ async fn fetch_an_integer() -> String {
129129

130130
Support for the RedisJSON Module can be enabled by specifying "json" as a feature in your Cargo.toml.
131131

132-
`redis = { version = "0.22.3", features = ["json"] }`
132+
`redis = { version = "0.23.0", features = ["json"] }`
133133

134134
Then you can simply import the `JsonCommands` trait which will add the `json` commands to all Redis Connections (not to be confused with just `Commands` which only adds the default commands)
135135

redis-test/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<a name="0.2.0-beta.1"></a>
2+
### 0.2.0-beta.1 (2023-03-28)
3+
4+
* Track redis 0.23.0-beta.1 release
5+
16
<a name="0.1.1"></a>
27
### 0.1.1 (2022-10-18)
38

redis-test/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "redis-test"
3-
version = "0.1.1"
3+
version = "0.2.0-beta.1"
44
edition = "2021"
55
description = "Testing helpers for the `redis` crate"
66
homepage = "https://github.com/redis-rs/redis-rs"
@@ -10,7 +10,7 @@ license = "BSD-3-Clause"
1010
rust-version = "1.59"
1111

1212
[dependencies]
13-
redis = { version = "0.22.1", path = "../redis" }
13+
redis = { version = "0.23.0-beta.1", path = "../redis" }
1414

1515
bytes = { version = "1", optional = true }
1616
futures = { version = "0.3", optional = true }
@@ -19,6 +19,6 @@ futures = { version = "0.3", optional = true }
1919
aio = ["futures", "redis/aio"]
2020

2121
[dev-dependencies]
22-
redis = { version = "0.22.1", path = "../redis", features = ["aio", "tokio-comp"] }
22+
redis = { version = "0.23.0-beta.1", path = "../redis", features = ["aio", "tokio-comp"] }
2323
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] }
2424

redis/CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
<a name="0.23.0-beta.1"></a>
2+
### 0.23.0-beta.1 (2023-03-28)
3+
4+
This release adds the `cluster_async` module, which introduces async Redis Cluster support. The code therein
5+
is largely taken from @Marwes's [redis-cluster-async crate](https://github.com/redis-rs/redis-cluster-async), which itself
6+
appears to have started from a sync Redis Cluster implementation started by @atuk721. In any case, thanks to @Marwes and @atuk721
7+
for the great work, and we hope to keep development moving forward in `redis-rs`.
8+
9+
Though async Redis Cluster functionality for the time being has been kept as close to the originating crate as possible, previous users of
10+
`redis-cluster-async` should note the following changes:
11+
* Retries, while still configurable, can no longer be set to `None`/infinite retries
12+
* Routing and slot parsing logic has been removed and merged with existing `redis-rs` functionality
13+
* The client has been removed and superceded by common `ClusterClient`
14+
* Renamed `Connection` to `ClusterConnection`
15+
* Added support for reading from replicas
16+
* Added support for insecure TLS
17+
* Added support for setting both username and password
18+
19+
#### Breaking Changes
20+
* Fix long-standing bug related to `AsyncIter`'s stream implementation in which polling the server
21+
for additional data yielded broken data in most cases. Type bounds for `AsyncIter` have changed slightly,
22+
making this a potentially breaking change. ([#597](https://github.com/redis-rs/redis-rs/pull/597) @roger)
23+
24+
#### Changes
25+
* Commands: Add additional generic args for key arguments ([#795](https://github.com/redis-rs/redis-rs/pull/795) @MaxOhn)
26+
* Add `mset` / deprecate `set_multiple` ([#766](https://github.com/redis-rs/redis-rs/pull/766) @randomairborne)
27+
* More efficient interfaces for `MultiplexedConnection` and `ConnectionManager` ([#811](https://github.com/redis-rs/redis-rs/pull/811) @nihohit)
28+
* Refactor / remove flaky test ([#810](https://github.com/redis-rs/redis-rs/pull/810))
29+
* `cluster_async`: rename `Connection` to `ClusterConnection`, `Pipeline` to `ClusterConnInner` ([#808](https://github.com/redis-rs/redis-rs/pull/808))
30+
* Support parsing IPV6 cluster nodes ([#796](https://github.com/redis-rs/redis-rs/pull/796) @socs)
31+
* Common client for sync/async cluster connections ([#798](https://github.com/redis-rs/redis-rs/pull/798))
32+
* `cluster::ClusterConnection` underlying connection type is now generic (with existing type as default)
33+
* Support `read_from_replicas` in cluster_async
34+
* Set retries in `ClusterClientBuilder`
35+
* Add mock tests for `cluster`
36+
* cluster-async common slot parsing([#793](https://github.com/redis-rs/redis-rs/pull/793))
37+
* Support async-std in cluster_async module ([#790](https://github.com/redis-rs/redis-rs/pull/790))
38+
* Async-Cluster use same routing as Sync-Cluster ([#789](https://github.com/redis-rs/redis-rs/pull/789))
39+
* Add Async Cluster Support ([#696](https://github.com/redis-rs/redis-rs/pull/696))
40+
* Fix broken json-module tests ([#786](https://github.com/redis-rs/redis-rs/pull/786))
41+
* `cluster`: Tls Builder support / simplify cluster connection map ([#718](https://github.com/redis-rs/redis-rs/pull/718) @0xWOF, @utkarshgupta137)
42+
143
<a name="0.22.3"></a>
244
### 0.22.3 (2023-01-23)
345

redis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "redis"
3-
version = "0.22.3"
3+
version = "0.23.0-beta.1"
44
keywords = ["redis", "database"]
55
description = "Redis driver for Rust."
66
homepage = "https://github.com/redis-rs/redis-rs"

0 commit comments

Comments
 (0)