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

Cannot use 'EVAL_RO' with redis-cluster #1447

Open
NHZEX opened this issue Mar 27, 2024 · 2 comments · May be fixed by #1449
Open

Cannot use 'EVAL_RO' with redis-cluster #1447

NHZEX opened this issue Mar 27, 2024 · 2 comments · May be fixed by #1449
Labels

Comments

@NHZEX
Copy link

NHZEX commented Mar 27, 2024

Describe the bug
Predis\NotSupportedException: Cannot use 'EVAL_RO' with redis-cluster.

To Reproduce
Steps to reproduce the behavior:

$redis->eval_ro(
    <<<LUA
    return redis.call('GET', KEYS[1])
    LUA,
    ['{test-k123}:script1'],
);

Expected behavior
A clear and concise description of what you expected to happen.

Versions (please complete the following information):

  • Predis: 2.2.2
  • PHP 8.2.17
  • Redis Server 7.2.3

Additional context
Add any other context about the problem here.

/* scripting */
'EVAL' => [$this, 'getKeyFromScriptingCommands'],
'EVALSHA' => [$this, 'getKeyFromScriptingCommands'],

The definition for EVAL_RO and EVALSHA_RO is missing here.

@NHZEX NHZEX added the bug label Mar 27, 2024
@tillkruss
Copy link
Member

Can you open a PR?

@NHZEX
Copy link
Author

NHZEX commented Mar 28, 2024

Can you open a PR?

Yes, open PR #1449

@NHZEX NHZEX linked a pull request Mar 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants