Skip to content
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

StreamEntry support Binary #3803

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thachlp
Copy link
Contributor

@thachlp thachlp commented Apr 6, 2024

Issue: #3566

Copy link
Collaborator

@sazzad16 sazzad16 left a comment

Choose a reason for hiding this comment

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

We must not break the existing implementations.

@thachlp
Copy link
Contributor Author

thachlp commented Apr 6, 2024

We must not break the existing implementations.

Hi, @sazzad16, thanks for the review 🙇
How do we resolve this issue?

@sazzad16
Copy link
Collaborator

sazzad16 commented Apr 6, 2024

How do we resolve this issue?

By creating new methods.


I just realized what your title says:

StreamEntry support Binary instead of String

Actually we want StreamEntry binary support while keeping the String ones.

@thachlp
Copy link
Contributor Author

thachlp commented Apr 6, 2024

How do we resolve this issue?

By creating new methods.

I just realized what your title says:

StreamEntry support Binary instead of String

Actually we want StreamEntry binary support while keeping the String ones.

Thanks, I will update.

@sazzad16 sazzad16 changed the title StreamEntry support Binary instead of String StreamEntry support Binary Apr 9, 2024
Copy link
Contributor Author

@thachlp thachlp left a comment

Choose a reason for hiding this comment

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

Hi @sazzad16, as I understand, there is xadd support Map<byte[], byte[]> hash already.

  public final CommandObject<byte[]> xadd(byte[] key, XAddParams params, Map<byte[], byte[]> hash) {
    return new CommandObject<>(addFlatMapArgs(commandArguments(XADD).key(key).addParams(params), hash),
        BuilderFactory.BINARY);
  }

@sazzad16
Copy link
Collaborator

@thachlp StreamEntry has nothing to do with XADD.

@thachlp thachlp marked this pull request as draft April 19, 2024 14:16
Revert

Add StreamEntryBinary
@thachlp thachlp force-pushed the stream-entry-support-binary branch 2 times, most recently from 1ffa1d7 to 431f721 Compare April 19, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants