Skip to content

Commit bdcdc97

Browse files
jongjin-baemp911de
jongjin-bae
authored andcommitted
Move off deprecated code in reference documentation.
Fix example to create an instance of the LettuceClientConfiguration type with the appropriate constant variable. Closes #1964 Original pull request: #1966.
1 parent 33cd7bd commit bdcdc97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/asciidoc/reference/redis.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class WriteToMasterReadFromReplicaConfiguration {
268268
public LettuceConnectionFactory redisConnectionFactory() {
269269
270270
LettuceClientConfiguration clientConfig = LettuceClientConfiguration.builder()
271-
.readFrom(SLAVE_PREFERRED)
271+
.readFrom(REPLICA_PREFERRED)
272272
.build();
273273
274274
RedisStandaloneConfiguration serverConfig = new RedisStandaloneConfiguration("server", 6379);

0 commit comments

Comments
 (0)