Enable prefix by default on RedisCacheManager
An overhaul of the `RedisCacheManager` is expected in Hopper (to be consumed by Spring Boot 1.4). One of those changes is to make sure every key have a decent prefix by default. This commit enables the use of prefix as it is disabled by default. Closes gh-5175
This commit is contained in:
@@ -3374,6 +3374,12 @@ If Redis is available and configured, the `RedisCacheManager` is auto-configured
|
||||
also possible to create additional caches on startup using the `spring.cache.cache-names`
|
||||
property.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default, a key prefix is added to prevent that if two separate caches use the same
|
||||
key, Redis would have overlapping keys and be likely to return invalid values. We strongly
|
||||
recommend to keep this setting enabled if you create your own `RedisCacheManager`.
|
||||
====
|
||||
|
||||
|
||||
[[boot-features-caching-provider-guava]]
|
||||
|
||||
Reference in New Issue
Block a user