Skip to content

RedisCodec Implementation Question #1864

Answered by mp911de
dalegaspi asked this question in Q&A
Discussion options

You must be logged in to vote

I converted the issue into a discussion.

The ByteBuffer interface in codecs is used by Lettuce accepting and providing buffers. When decoding, you should either copy or consume buffers as the input buffer is attached to a Netty buffer. Keeping a reference may result in a changed underlying buffer and undesired consequences.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dalegaspi
Comment options

Answer selected by dalegaspi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1863 on September 27, 2021 13:53.