@@ -14,7 +14,7 @@ The crate is called `redis` and you can depend on it via cargo:
14
14
15
15
``` ini
16
16
[dependencies]
17
- redis = " 0.23.0 "
17
+ redis = " 0.23.1 "
18
18
```
19
19
20
20
Documentation on the library can be found at
@@ -60,10 +60,10 @@ To enable asynchronous clients, enable the relevant feature in your Cargo.toml,
60
60
61
61
```
62
62
# if you use tokio
63
- redis = { version = "0.23.0 ", features = ["tokio-comp"] }
63
+ redis = { version = "0.23.1 ", features = ["tokio-comp"] }
64
64
65
65
# if you use async-std
66
- redis = { version = "0.23.0 ", features = ["async-std-comp"] }
66
+ redis = { version = "0.23.1 ", features = ["async-std-comp"] }
67
67
```
68
68
69
69
## TLS Support
@@ -74,25 +74,25 @@ Currently, `native-tls` and `rustls` are supported.
74
74
To use ` native-tls ` :
75
75
76
76
```
77
- redis = { version = "0.23.0 ", features = ["tls-native-tls"] }
77
+ redis = { version = "0.23.1 ", features = ["tls-native-tls"] }
78
78
79
79
# if you use tokio
80
- redis = { version = "0.23.0 ", features = ["tokio-native-tls-comp"] }
80
+ redis = { version = "0.23.1 ", features = ["tokio-native-tls-comp"] }
81
81
82
82
# if you use async-std
83
- redis = { version = "0.23.0 ", features = ["async-std-native-tls-comp"] }
83
+ redis = { version = "0.23.1 ", features = ["async-std-native-tls-comp"] }
84
84
```
85
85
86
86
To use ` rustls ` :
87
87
88
88
```
89
- redis = { version = "0.23.0 ", features = ["tls-rustls"] }
89
+ redis = { version = "0.23.1 ", features = ["tls-rustls"] }
90
90
91
91
# if you use tokio
92
- redis = { version = "0.23.0 ", features = ["tokio-rustls-comp"] }
92
+ redis = { version = "0.23.1 ", features = ["tokio-rustls-comp"] }
93
93
94
94
# if you use async-std
95
- redis = { version = "0.23.0 ", features = ["async-std-rustls-comp"] }
95
+ redis = { version = "0.23.1 ", features = ["async-std-rustls-comp"] }
96
96
```
97
97
98
98
With ` rustls ` , you can add the following feature flags on top of other feature flags to enable additional features:
@@ -112,7 +112,7 @@ let client = redis::Client::open("rediss://127.0.0.1/")?;
112
112
113
113
Support for Redis Cluster can be enabled by enabling the ` cluster ` feature in your Cargo.toml:
114
114
115
- ` redis = { version = "0.23.0 ", features = [ "cluster"] } `
115
+ ` redis = { version = "0.23.1 ", features = [ "cluster"] } `
116
116
117
117
Then you can simply use the ` ClusterClient ` , which accepts a list of available nodes. Note
118
118
that only one node in the cluster needs to be specified when instantiating the client, though
@@ -135,7 +135,7 @@ fn fetch_an_integer() -> String {
135
135
Async Redis Cluster support can be enabled by enabling the ` cluster-async ` feature, along
136
136
with your preferred async runtime, e.g.:
137
137
138
- ` redis = { version = "0.23.0 ", features = [ "cluster-async", "tokio-std-comp" ] } `
138
+ ` redis = { version = "0.23.1 ", features = [ "cluster-async", "tokio-std-comp" ] } `
139
139
140
140
``` rust
141
141
use redis :: cluster :: ClusterClient ;
@@ -155,7 +155,7 @@ async fn fetch_an_integer() -> String {
155
155
156
156
Support for the RedisJSON Module can be enabled by specifying "json" as a feature in your Cargo.toml.
157
157
158
- ` redis = { version = "0.23.0 ", features = ["json"] } `
158
+ ` redis = { version = "0.23.1 ", features = ["json"] } `
159
159
160
160
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)
161
161
0 commit comments