Add support for customizing the auto-configured ClientResources

Closes gh-26792
This commit is contained in:
Stephane Nicoll
2021-06-14 09:32:43 +02:00
parent f8555b9071
commit a0cf1eed41
4 changed files with 55 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ include::{docs-java}/features/nosql/redis/connecting/MyBean.java[]
----
TIP: You can also register an arbitrary number of beans that implement `LettuceClientConfigurationBuilderCustomizer` for more advanced customizations.
`ClientResources` can also be customized using `ClientResourcesBuilderCustomizer`.
If you use Jedis, `JedisClientConfigurationBuilderCustomizer` is also available.
If you add your own `@Bean` of any of the auto-configured types, it replaces the default (except in the case of `RedisTemplate`, when the exclusion is based on the bean name, `redisTemplate`, not its type).