Skip to content

Commit 87761b0

Browse files
authored
Fix typo & add withSsl() in connecting to Entra ID enabled Redis doc (#3191)
1 parent a5f3415 commit 87761b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: docs/user-guide/connecting-redis.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,11 @@ Microsoft Entra ID tokens have a limited lifetime. Lettuce provides a mechanism
377377
RedisURI redisURI = RedisURI.builder()
378378
.withHost(HOST)
379379
.withPort(PORT)
380+
.withSsl(true)
380381
.withAuthentication(credentialsSP).build();
381382

382383
// RedisClient
383-
RedisClient redisClient = RedisClient.create(redisURI1);
384+
RedisClient redisClient = RedisClient.create(redisURI);
384385
redisClient.setOptions(clientOptions);
385386

386387
try {
@@ -394,4 +395,4 @@ Microsoft Entra ID tokens have a limited lifetime. Lettuce provides a mechanism
394395
redisClient.shutdown(); // Shutdown Redis client and close connections
395396
credentialsSP.close(); // Shutdown Entra ID Credentials provider
396397
}
397-
```
398+
```

0 commit comments

Comments
 (0)