Skip to content

Conversation

@Avital-Fine
Copy link
Contributor

@Avital-Fine Avital-Fine commented Apr 24, 2022

The new features were added to Redis 7: now the indexes of both commands (BITCOUNT and BITPOS) can be specified in BITs instead of BYTEs.

(Also added tests for BitPosition since it was missing)

@NickCraver
Copy link
Collaborator

In this case, I'd guess we want an overload, e.g. with StringIndexType.Bit/Byte (defaulting to Byte) before CommandFlags - thoughts?

@Avital-Fine
Copy link
Contributor Author

In this case, I'd guess we want an overload, e.g. with StringIndexType.Bit/Byte (defaulting to Byte) before CommandFlags - thoughts?

Yes, I was considering that but we can't make a default if we overload.

@NickCraver I can do overload without a default if you think it's better

@NickCraver
Copy link
Collaborator

We can do with a default, we just need to make sure not to break the old method - see #2098 where I'm doing a setup to ensure it's not broken by testing all overload options someone could be using - we'd want to do the same here. You could merge that PR branch in here and point this PR at that branch instead of main, since it'll merge first and has the test clas in place and such.

@Avital-Fine
Copy link
Contributor Author

@NickCraver Ready :)

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

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

Alrighty tried to give this a good pass. Sorry time isn't on my side this week, but this is looking great - just about good to go :)

@Avital-Fine Avital-Fine requested a review from NickCraver April 27, 2022 19:34
Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

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

This is looking awesome - thank you for the tweaks and compat checks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants