Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
winguse authored Oct 7, 2024
1 parent 8956e5d commit 6f6382a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,13 @@ netty's <code>AddressResolver</code> that resolves DNS names on
is not available, otherwise defaults to <code>io.netty.resolver.dns.DnsAddressResolverGroup</code></p>
<p>Users of DNS-based Redis-HA setups (e.g. AWS ElastiCache) might want to configure a different DNS
resolver group. For example: <pre>
DnsNameResolverBuilder builder = new DnsNameResolverBuilder();
builder.resolveCache(NoopDnsCache.INSTANCE);
builder.cnameCache(NoopDnsCnameCache.INSTANCE);
builder.authoritativeDnsServerCache(NoopAuthoritativeDnsServerCache.INSTANCE);
builder.consolidateCacheSize(0);
new DnsAddressResolverGroup(builder);
new DnsAddressResolverGroup(
new DnsNameResolverBuilder()
.resolveCache(NoopDnsCache.INSTANCE)
.cnameCache(NoopDnsCnameCache.INSTANCE)
.authoritativeDnsServerCache(NoopAuthoritativeDnsServerCache.INSTANCE)
.consolidateCacheSize(0)
);
</pre></p>
</td>
</tr>
Expand Down

0 comments on commit 6f6382a

Please sign in to comment.