Skip to content

Commit

Permalink
Update changelog for 0.22.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede authored and jaymell committed Jan 23, 2023
1 parent b130b18 commit adaeec0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The crate is called `redis` and you can depend on it via cargo:

```ini
[dependencies]
redis = "0.22.2"
redis = "0.22.3"
```

Documentation on the library can be found at
Expand Down Expand Up @@ -54,24 +54,24 @@ To enable asynchronous clients a feature for the underlying feature need to be a

```
# if you use tokio
redis = { version = "0.22.2", features = ["tokio-comp"] }
redis = { version = "0.22.3", features = ["tokio-comp"] }
# if you use async-std
redis = { version = "0.22.2", features = ["async-std-comp"] }
redis = { version = "0.22.3", features = ["async-std-comp"] }
```

## TLS Support

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

```
redis = { version = "0.22.2", features = ["tls"] }
redis = { version = "0.22.3", features = ["tls"] }
# if you use tokio
redis = { version = "0.22.2", features = ["tokio-native-tls-comp"] }
redis = { version = "0.22.3", features = ["tokio-native-tls-comp"] }
# if you use async-std
redis = { version = "0.22.2", features = ["async-std-tls-comp"] }
redis = { version = "0.22.3", features = ["async-std-tls-comp"] }
```

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

Cluster mode can be used by specifying "cluster" as a features entry in your Cargo.toml.

`redis = { version = "0.22.2", features = [ "cluster"] }`
`redis = { version = "0.22.3", features = [ "cluster"] }`

Then you can simply use the `ClusterClient` which accepts a list of available nodes.

Expand All @@ -107,7 +107,7 @@ fn fetch_an_integer() -> String {

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

`redis = { version = "0.22.2", features = ["json"] }`
`redis = { version = "0.22.3", features = ["json"] }`

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)

Expand Down
7 changes: 7 additions & 0 deletions redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="0.22.3"></a>
### 0.22.3 (2023-01-23)

#### Changes
* Restore inherent `ClusterConnection::check_connection()` method ([#758](https://github.com/redis-rs/redis-rs/pull/758) @robjtede)


<a name="0.22.2"></a>
### 0.22.2 (2023-01-07)

Expand Down
2 changes: 1 addition & 1 deletion redis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "redis"
version = "0.22.2"
version = "0.22.3"
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
Expand Down

0 comments on commit adaeec0

Please sign in to comment.