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.
This commit is contained in:
jongjin-bae
2021-02-14 23:45:40 +09:00
committed by Mark Paluch
parent 74885aeaf4
commit 9cc6fa3075

View File

@@ -268,7 +268,7 @@ class WriteToMasterReadFromReplicaConfiguration {
public LettuceConnectionFactory redisConnectionFactory() {
LettuceClientConfiguration clientConfig = LettuceClientConfiguration.builder()
.readFrom(SLAVE_PREFERRED)
.readFrom(REPLICA_PREFERRED)
.build();
RedisStandaloneConfiguration serverConfig = new RedisStandaloneConfiguration("server", 6379);