-
-
Notifications
You must be signed in to change notification settings - Fork 993
Closed
Labels
Description
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.
predis/src/Cluster/ClusterStrategy.php
Lines 163 to 166 in 45b18eb
| /* scripting */ | |
| 'EVAL' => [$this, 'getKeyFromScriptingCommands'], | |
| 'EVALSHA' => [$this, 'getKeyFromScriptingCommands'], | |
The definition for EVAL_RO and EVALSHA_RO is missing here.