Visitar URL original
Added the BYTE|BIT option for bitcount (binary) by zeekling · Pull Request #2768 · redis/jedis · GitHub
Skip to content

Added the BYTE|BIT option for bitcount (binary) - #2768

Merged
sazzad16 merged 3 commits into
redis:masterfrom
zeekling:bitcount
Dec 28, 2021
Merged

sazzad16 merged 3 commits into
redis:masterfrom
zeekling:bitcount

Conversation

@zeekling

Copy link
Copy Markdown
Contributor

Added the BYTE|BIT option for bitcount

image

@sazzad16 sazzad16 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Return type for both bitcountByte and bitcountBit is same. IMO, it's better to create a BitCountOption in args package and just do bitcount(key, start, end, bitcountOption).

@zeekling

zeekling commented Dec 26, 2021 •

Copy link
Copy Markdown
Contributor Author

done @sazzad16

@sazzad16 sazzad16 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also, add bitcount(String key, long start, long end, BitCountOption option) variants.

@sazzad16 sazzad16 changed the title Added the BYTE|BIT option for bitcount Added the BYTE|BIT option for bitcount (binary) Dec 28, 2021
@sazzad16 sazzad16 added this to the 4.1.0 milestone Dec 28, 2021
@sazzad16
sazzad16 merged commit a1abcf3 into redis:master Dec 28, 2021
@zeekling
zeekling deleted the bitcount branch January 2, 2022 10:14
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.

3 participants