You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Redis Cluster configuration is dynamic and can change at runtime.
73
+
New nodes may be added, and the primary node for a specific slot can shift.
74
+
Lettuce automatically handles [MOVED]({{< relref "/operate/oss_and_stack/reference/cluster-spec#moved-redirection" >}}) and [ASK]({{< relref "/operate/oss_and_stack/reference/cluster-spec#ask-redirection" >}}) redirects, but to enhance your application's resilience, you should enable adaptive topology refreshing:
75
+
76
+
```java
77
+
RedisURI redisURI =RedisURI.Builder
78
+
.redis("localhost")
79
+
// set the global default from the default 60 seconds to 30 seconds
80
+
.withTimeout(Duration.ofSeconds(30))
81
+
.build();
82
+
83
+
// Create a RedisClusterClient with adaptive topology refresh
0 commit comments