@@ -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.27.0 "
17
+ redis = " 0.27.3 "
18
18
```
19
19
20
20
Documentation on the library can be found at
@@ -57,10 +57,10 @@ To enable asynchronous clients, enable the relevant feature in your Cargo.toml,
57
57
58
58
```
59
59
# if you use tokio
60
- redis = { version = "0.27.0 ", features = ["tokio-comp"] }
60
+ redis = { version = "0.27.3 ", features = ["tokio-comp"] }
61
61
62
62
# if you use async-std
63
- redis = { version = "0.27.0 ", features = ["async-std-comp"] }
63
+ redis = { version = "0.27.3 ", features = ["async-std-comp"] }
64
64
```
65
65
66
66
## TLS Support
@@ -71,25 +71,25 @@ Currently, `native-tls` and `rustls` are supported.
71
71
To use ` native-tls ` :
72
72
73
73
```
74
- redis = { version = "0.27.0 ", features = ["tls-native-tls"] }
74
+ redis = { version = "0.27.3 ", features = ["tls-native-tls"] }
75
75
76
76
# if you use tokio
77
- redis = { version = "0.27.0 ", features = ["tokio-native-tls-comp"] }
77
+ redis = { version = "0.27.3 ", features = ["tokio-native-tls-comp"] }
78
78
79
79
# if you use async-std
80
- redis = { version = "0.27.0 ", features = ["async-std-native-tls-comp"] }
80
+ redis = { version = "0.27.3 ", features = ["async-std-native-tls-comp"] }
81
81
```
82
82
83
83
To use ` rustls ` :
84
84
85
85
```
86
- redis = { version = "0.27.0 ", features = ["tls-rustls"] }
86
+ redis = { version = "0.27.3 ", features = ["tls-rustls"] }
87
87
88
88
# if you use tokio
89
- redis = { version = "0.27.0 ", features = ["tokio-rustls-comp"] }
89
+ redis = { version = "0.27.3 ", features = ["tokio-rustls-comp"] }
90
90
91
91
# if you use async-std
92
- redis = { version = "0.27.0 ", features = ["async-std-rustls-comp"] }
92
+ redis = { version = "0.27.3 ", features = ["async-std-rustls-comp"] }
93
93
```
94
94
95
95
With ` rustls ` , you can add the following feature flags on top of other feature flags to enable additional features:
@@ -115,7 +115,7 @@ let client = redis::Client::open("rediss://127.0.0.1/#insecure")?;
115
115
116
116
Support for Redis Cluster can be enabled by enabling the ` cluster ` feature in your Cargo.toml:
117
117
118
- ` redis = { version = "0.27.0 ", features = [ "cluster"] } `
118
+ ` redis = { version = "0.27.3 ", features = [ "cluster"] } `
119
119
120
120
Then you can simply use the ` ClusterClient ` , which accepts a list of available nodes. Note
121
121
that only one node in the cluster needs to be specified when instantiating the client, though
@@ -138,7 +138,7 @@ fn fetch_an_integer() -> String {
138
138
Async Redis Cluster support can be enabled by enabling the ` cluster-async ` feature, along
139
139
with your preferred async runtime, e.g.:
140
140
141
- ` redis = { version = "0.27.0 ", features = [ "cluster-async", "tokio-std-comp" ] } `
141
+ ` redis = { version = "0.27.3 ", features = [ "cluster-async", "tokio-std-comp" ] } `
142
142
143
143
``` rust
144
144
use redis :: cluster :: ClusterClient ;
@@ -158,7 +158,7 @@ async fn fetch_an_integer() -> String {
158
158
159
159
Support for the RedisJSON Module can be enabled by specifying "json" as a feature in your Cargo.toml.
160
160
161
- ` redis = { version = "0.27.0 ", features = ["json"] } `
161
+ ` redis = { version = "0.27.3 ", features = ["json"] } `
162
162
163
163
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)
164
164
0 commit comments