-
Notifications
You must be signed in to change notification settings - Fork 350
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
Add bitfield api #423
base: master
Are you sure you want to change the base?
Add bitfield api #423
Conversation
Thanks for the contribution! However, it seems that the bitfield interface you proposed, is not more user-friendly than the generic interface:
I checked the doc on redis.io, this command, which has 3 subcommands, is quite complex. It seems that there're 2 solutions:
However, both solutions are not perfect. The first one is a little complicated, and the GET subcommand doesn't need the Not quite sure which solution is the best one. Or maybe for complex command, the generic command is the best choice? B.T.W. you should save the return value of bitfield into a STL container of type Regards |
@sewenew Thank you for reviewing. |
In fact, redis-plus-plus can implement almost all commands through the generic interface: command method, I just want to add the api of bitfield to the project with minimize the use of If you think use |
Thanks for the info on Jedis! Let's make this PR pending to see if there're any new feedback from others. Also I'll take a look at other client APIs for these complex command. Regards |
Just add bitfield api