Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PhpRedisConnection function zadd is not working for native redis cluster. #30472

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

Closed
kojima-akira-sz opened this issue Oct 31, 2019 · 0 comments
Closed

Comments

@kojima-akira-sz
Copy link

  • Lumen Version: 5.8.13
  • PHP Version: 7.2.21
  • phpredis Version: 5.0.2

Description:

PhpRedisConnection function zadd is not working for native redis cluster.

Arguments of Phpredis function rawCommand for redis cluster is defferent.

When using rawCommand with RedisCluster you pass the key or a host/port combination as the initial argument, which tells RedisCluster where to deliver the query
phpredis/phpredis#1006

What about using "command" instead of "executeRaw"?

return $this->executeRaw(array_merge(['zadd', $key], $dictionary));

Similarly for "exists".

Steps To Reproduce:

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

1 participant