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

Can I support the bitfield command? I didn't find this in the documentation. #1525

Open
2 tasks
youngda opened this issue Mar 17, 2019 · 4 comments
Open
2 tasks
Assignees

Comments

@youngda
Copy link

youngda commented Mar 17, 2019

Expected behaviour

Actual behaviour

I'm seeing this behaviour on

  • OS: centos7x64
  • Redis:5.0.3
  • PHP:7.2
  • phpredis:

Steps to reproduce, backtrace or example script

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch
@michael-grunder michael-grunder self-assigned this Mar 20, 2019
@michael-grunder
Copy link
Member

Hi,

Apparently not! I'll add an implementation but if you need the command now you can always use rawCommand.

@youngda
Copy link
Author

youngda commented Mar 22, 2019

@michael-grunder Thank you for your help

@michael-grunder
Copy link
Member

So after looking at the BITFIELD command, I think the way to support it in phpredis is to just treat it as a generic variable argument command.

Phpredis should understand where the key is, so it properly supports any key prefixing that's enabled, but I don't know if we really get anything by writing a lot of code to take/validate the various GET, SET, and INCRBY operations in a structured way.

@yatsukhnenko What do you think?

@laraveladmin-cn
Copy link

目前只有切换driver进行解决

use Predis\Client;
$redis_config = config('database.redis.default');
$redis = new Client($redis_config);
$redis->bitfield();

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

3 participants