Detect user-defined RedisCacheConfiguration

This commits improves the cache auto-configuration for Redis by looking
up a custom "RedisCacheConfiguration" bean that allows to take full
control over the `RedisCacheManager`.

Closes gh-11599
This commit is contained in:
Stephane Nicoll
2018-01-11 11:52:08 +01:00
parent 7d12dc2e02
commit 4a9123d6e3
3 changed files with 56 additions and 11 deletions

View File

@@ -4638,6 +4638,10 @@ key, Redis does not have overlapping keys and cannot return invalid values. We s
recommend keeping this setting enabled if you create your own `RedisCacheManager`.
====
TIP: You can take full control of the configuration by adding a `RedisCacheConfiguration`
`@Bean` of your own. This can be useful if you're looking for customizing the
serialization strategy.
[[boot-features-caching-provider-caffeine]]