Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reuse StringRedisSerializer instance #2055

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Apr 18, 2022

No description provided.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 18, 2022
@eleftherias eleftherias self-assigned this Apr 26, 2022
@eleftherias
Copy link
Contributor

Thanks for the suggestion @quaff.
Is the existing configuration causing any problems for you?

Since this is a sample configuration, I don't see the need for this change if it doesn't cause any problems.

@eleftherias eleftherias added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 26, 2022
Copy link
Contributor

@vpavic vpavic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd merge this. There's no need to instantiate additional serializer instances when Spring Data Redis offers RedisSerializer#string exactly to avoid that.

Note @quaff that there are more occurrence of this in RedisHttpSessionConfiguration and RedisWebSessionConfiguration.

@quaff quaff changed the base branch from 2.7.x to main November 7, 2022 02:51
@quaff
Copy link
Contributor Author

quaff commented Nov 7, 2022

I'd merge this. There's no need to instantiate additional serializer instances when Spring Data Redis offers RedisSerializer#string exactly to avoid that.

Note @quaff that there are more occurrence of this in RedisHttpSessionConfiguration and RedisWebSessionConfiguration.

@vpavic Updated.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Nov 7, 2022
@marcusdacoregio marcusdacoregio added type: enhancement A general enhancement in: redis and removed status: feedback-provided Feedback has been provided labels Apr 5, 2023
@marcusdacoregio marcusdacoregio added this to the 3.1.0-M2 milestone Apr 5, 2023
@marcusdacoregio marcusdacoregio merged commit 5885861 into spring-projects:main Apr 5, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: redis type: enhancement A general enhancement
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants