From 0da6040e7a8f813ab057f5ef31be43c6d5851406 Mon Sep 17 00:00:00 2001 From: nihohit Date: Wed, 12 Oct 2022 10:51:39 +0300 Subject: [PATCH] Update version numbers in code samples. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 681483982..32e7627ca 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,10 @@ 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 @@ -65,13 +65,13 @@ redis = { version = "0.17.0", features = ["async-std-comp"] } 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: @@ -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.