-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add getCodec method to StatefulConnection #3444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 theRedisCodec<K,V>instance
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
src/main/java/io/lettuce/core/cluster/StatefulRedisClusterConnectionImpl.java
Show resolved
Hide resolved
|
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. |
|
@tishun Good point. I added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of #
- [ ]
|
LGTM |
This reverts commit bcabe0f.
Add a
RedisCodec<K,V> getCodec()method likeStatefulRedisConnectionImpldoes