Announcement Announcement Module
Collapse
No announcement yet.
RedisCacheManager - incorrect default behavior? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RedisCacheManager - incorrect default behavior?

    Hello,

    Looking at the JavaDoc for the RedisCacheManager, it says:

    "By default saves the keys by appending a prefix (which acts as a namespace)."

    Looking at the implementation though, shouldn't line 43 be changed from:

    private boolean usePrefix;

    to:

    private boolean usePrefix = true;

    to make this happen?

    Regards,

    Joshua

  • #2
    You're right that the javadoc and implementation are out of sync. Turning 'usePrefix' to true, while respecting the javadoc, will have side-effects for those that are already using it and as it is a breaking change, I've taken the route of changing the javadoc instead.
    This should allow the 1.0.3 version to be a drop-in upgrade.

    P.S. the change is already available in master

    Comment

    Working...
    X