Skip to content

Conversation

@jruaux
Copy link
Contributor

@jruaux jruaux commented Sep 15, 2025

Add a RedisCodec<K,V> getCodec() method like StatefulRedisConnectionImpl does

@jruaux jruaux requested a review from Copilot September 15, 2025 17:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a getCodec() method to StatefulRedisClusterConnectionImpl to provide access to the underlying Redis codec, bringing consistency with StatefulRedisConnectionImpl which already has this method.

  • Add public getCodec() method that returns the RedisCodec<K,V> instance

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jruaux jruaux requested a review from tishun September 15, 2025 17:33
@tishun
Copy link
Collaborator

tishun commented Sep 19, 2025

Hey @jruaux ,

can you give me some context to why we need this?

Overall I am not opposed, but I'd rather expose it as part of the contract, as right now it requires casting which is not a very good pattern to follow.

@jruaux jruaux changed the title Add getCodec method to StatefulRedisClusterConnectionImpl Add getCodec method to StatefulConnection Sep 20, 2025
@jruaux
Copy link
Contributor Author

jruaux commented Sep 20, 2025

@tishun Good point. I added getCodec to StatefulConnection and implemented it in all 3 direct subclasses

Copy link

@mdellison90-stack mdellison90-stack left a comment

Choose a reason for hiding this comment

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

Duplicate of #

  • [ ]

@tishun tishun requested a review from a-TODO-rov October 6, 2025 10:19
@a-TODO-rov
Copy link
Contributor

LGTM
Thanks all

@a-TODO-rov a-TODO-rov merged commit bcabe0f into main Oct 10, 2025
11 checks passed
@a-TODO-rov a-TODO-rov deleted the api-cluster-connection-codec branch October 10, 2025 11:01
@a-TODO-rov a-TODO-rov added this to the 7.0.0.RELEASE milestone Oct 10, 2025
a-TODO-rov added a commit that referenced this pull request Oct 14, 2025
a-TODO-rov added a commit that referenced this pull request Oct 14, 2025
a-TODO-rov added a commit that referenced this pull request Oct 20, 2025
a-TODO-rov added a commit that referenced this pull request Oct 20, 2025
@ggivo ggivo added the type: improvement An improvement to the existing implementation label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: improvement An improvement to the existing implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants