Results 1 to 2 of 2

Thread: RedisCacheManager - incorrect default behavior?

  1. #1

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •