Skip to content

Commit d10c85e

Browse files
authored
docs: Correct builder to use hostAndPort method (#4322)
1 parent eea01d2 commit d10c85e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/migration-guides/v6-to-v7.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ Jedis 7.0.0 introduces a fluent builder pattern for creating client instances, m
191191
**New in v7.0.0:**
192192
```java
193193
JedisPooled jedis = JedisPooled.builder()
194-
.host("localhost")
195-
.port(6379)
194+
.hostAndPort("localhost", 6379)
196195
.clientConfig(DefaultJedisClientConfig.builder()
197196
.user("myuser")
198197
.password("mypassword")

0 commit comments

Comments
 (0)