-
Notifications
You must be signed in to change notification settings - Fork 979
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
Investigate on codec reconfiguration for a active connection #632
Comments
I agree with this suggestion. My use case is this: I want to reuse a connection pool but serialize differently depending on the data structure, e.g. single Redis database but with maps and lists used for different purposes. While I agree this depends largely on the serialization strategy (deserializing between different key types may be tricky and lead to ill effects), the user should decide whether they want to. In most cases, e.g. when my serialization strategy is JSON/XML/etc, it is valid. I could do this in Spring Data Redis via |
Looking at the API, we could introduce @TheSpiritXIII You could create Another caveat is that |
I'm migrating from Jedis and hitting this issue as well. Jedis supports byte[]/String methods out of the box (edit: on the same connection), but for Lettuce, I'm planning to use a |
Lettuce supports binary and |
Hello. |
Right now, there's no proper way how to achieve this functionality. We either get hold of another connection object that doesn't represent the actual connection or we get a back-reference to a connection that isn't using the reconfigured codec ( That being said, if you have another proposal, we're happy to discuss it here. |
Using different codecs requires to run multiple connections as each connection is typed with a specific codec. We should investigate whether it's possible to retype a connection to create a new connection facade that provides its functionality with a different codec:
The text was updated successfully, but these errors were encountered: