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

BITCOUNT not support bit option #2879

Closed
kay011 opened this issue Jan 31, 2024 · 1 comment
Closed

BITCOUNT not support bit option #2879

kay011 opened this issue Jan 31, 2024 · 1 comment

Comments

@kay011
Copy link

kay011 commented Jan 31, 2024

From version 7.0.0, Redis added the BYTE|BIT option for BITCOUNT.

For example:

127.0.0.1:6379> setbit mykey 7 1
(integer) 0
127.0.0.1:6379> setbit mykey 6 1
(integer) 0
127.0.0.1:6379> bitcount mykey 6 7 
(integer) 0
127.0.0.1:6379> bitcount mykey 6 7 bit
(integer) 2
127.0.0.1:6379> bitcount mykey 6 7 byte
(integer) 0

But go-redis does't support this option in lastest version.

@tzq0301
Copy link
Contributor

tzq0301 commented Feb 15, 2024

Can be closed by #2887

@kay011 kay011 closed this as completed Feb 24, 2024
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

No branches or pull requests

2 participants