Skip to content

Commit

Permalink
Update version numbers in code samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit authored and djc committed Oct 12, 2022
1 parent 0c6b9ec commit 0da6040
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
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.17.0", features = ["tokio-comp"] }
redis = { version = "0.21.5", features = ["tokio-comp"] }
# if you use async-std
redis = { version = "0.17.0", features = ["async-std-comp"] }
redis = { version = "0.21.5", 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.19.0", features = ["tls"] }
redis = { version = "0.21.5", features = ["tls"] }
# if you use tokio
redis = { version = "0.19.0", features = ["tokio-native-tls-comp"] }
redis = { version = "0.21.5", features = ["tokio-native-tls-comp"] }
# if you use async-std
redis = { version = "0.19.0", features = ["async-std-tls-comp"] }
redis = { version = "0.21.5", 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.17.0", features = [ "cluster"] }`
`redis = { version = "0.21.5", features = [ "cluster"] }`

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

Expand Down

0 comments on commit 0da6040

Please sign in to comment.