Skip to content

Commit

Permalink
Fix version in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Féron committed Sep 22, 2020
1 parent 981714b commit 5c8d4c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ fn fetch_an_integer() -> redis::RedisResult<isize> {
To enable TLS support, you need to use the relevant feature entry in your Cargo.toml.

```
redis = { version = "0.16.0", default-features = false, features = ["tls"] }
redis = { version = "0.17.0", default-features = false, features = ["tls"] }
# if you use tokio
redis = { version = "0.16.0", default-features = false, features = ["tls", "tokio-tls-comp"] }
redis = { version = "0.17.0", default-features = false, features = ["tls", "tokio-tls-comp"] }
# if you use async-std
redis = { version = "0.16.0", default-features = false, features = ["tls", "async-std-tls-comp"] }
redis = { version = "0.17.0", default-features = false, features = ["tls", "async-std-tls-comp"] }
```

then you should be able to connect to a redis instance using the `redis://` URL scheme:
Expand All @@ -71,7 +71,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.16.0", features = [ "cluster"] }`
`redis = { version = "0.17.0", features = [ "cluster"] }`

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

Expand Down

0 comments on commit 5c8d4c2

Please sign in to comment.