Skip to content

Cannot use 'EVAL_RO' with redis-cluster #1447

@NHZEX

Description

@NHZEX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions