Skip to content

Commit

Permalink
Fix typo & add withSsl() in connecting to Entra ID enabled Redis doc (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggivo authored Feb 19, 2025
1 parent a5f3415 commit 87761b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/user-guide/connecting-redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,11 @@ Microsoft Entra ID tokens have a limited lifetime. Lettuce provides a mechanism
RedisURI redisURI = RedisURI.builder()
.withHost(HOST)
.withPort(PORT)
.withSsl(true)
.withAuthentication(credentialsSP).build();

// RedisClient
RedisClient redisClient = RedisClient.create(redisURI1);
RedisClient redisClient = RedisClient.create(redisURI);
redisClient.setOptions(clientOptions);

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

0 comments on commit 87761b0

Please sign in to comment.