File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
content/develop/clients/go Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ letting `go-redis-entraid` fetch and renew the authentication tokens for you aut
27
27
## Install
28
28
29
29
Install [ ` go-redis ` ] ({{< relref "/develop/clients/go" >}}) if you
30
- have not already done so.
30
+ have not already done so. Note that ` go-redis-entraid `
31
+ requires ` go-redis ` v9.9.0 or above, so you should upgrade if you
32
+ are using an earlier version.
31
33
32
- Install ` go-redis-entraid ` with the
33
- following command:
34
+ Install ` go-redis-entraid ` with the following command:
34
35
35
36
``` bash
36
37
go get github.com/redis/go-redis-entraid
@@ -203,11 +204,10 @@ import (
203
204
204
205
func main () {
205
206
// Get required environment variables
206
- clientID := os.Getenv (" AZURE_CLIENT_ID" )
207
207
redisEndpoint := os.Getenv (" REDIS_ENDPOINT" )
208
- if clientID == " " || redisEndpoint == " " {
208
+ if redisEndpoint == " " {
209
209
log.Fatal (
210
- " AZURE_CLIENT_ID and REDIS_ENDPOINT env variables are required"
210
+ " REDIS_ENDPOINT environment variable is required"
211
211
)
212
212
}
213
213
You can’t perform that action at this time.
0 commit comments