Skip to content

Unnecessary cache configuration map creation in RedisCacheManagerBuilder [DATAREDIS-728] #1303

Closed
@spring-projects-issues

Description

@spring-projects-issues

Kezhu Wang opened DATAREDIS-728 and commented

RedisCacheManagerBuilder.withInitialCacheConfiguration appends new cache configurations by doing:

  1. Create a new map initialized with existing cache configuration.
  2. Put all new cache configurations to that newly created map.
  3. Assign the newly created map to field initialCaches.

While just Map.putAll can accomplish this


Affects: 2.0.1 (Kay SR1)

Referenced from: pull request #293, and commits 1a6f51a, c454f42, ecb19f4, 1504c76

Backported to: 2.0.2 (Kay SR2)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions