does Lettuce allow duplicate field when using the XADD command? #3327
|
Upon reading the official document here, I realized that XADD command allows duplicate field and Redis stores both as opposed to override the previous value. Does Lettuce follow the same behavior? |
Answered by
tishun
Jun 18, 2025
Replies: 2 comments
|
As far as I can tell - partially. You are able to create duplicates using the RedisFuture<String> xadd(K key, Object... keysAndValues);, but unfortunately reading seems to suffer from the problem described in the article you mention. Would you mind creating an issue so we can track this? |
0 replies
Answer selected by
tishun
|
thank you @tishun for responding. I do not have such a use case but was just curious about the Lettuce behavior in this case. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I can tell - partially. You are able to create duplicates using the
, but unfortunately reading seems to suffer from the problem described in the article you mention.
Would you mind creating an issue so we can track this?
Do you have a use case where you need to have duplicate items in the reply?
Would you mind to sharing it with the team?