Skip to content

Commit 112ad7d

Browse files
committed
fix pr comment
1 parent a694dfb commit 112ad7d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

redis/commands/core.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,6 +3881,9 @@ class ScriptCommands:
38813881
https://redis.com/ebook/part-3-next-steps/chapter-11-scripting-redis-with-lua/
38823882
"""
38833883

3884+
def _eval(self, command, script, numkeys, *keys_and_args):
3885+
return self.execute_command(command, script, numkeys, *keys_and_args)
3886+
38843887
def eval(self, script, numkeys, *keys_and_args):
38853888
"""
38863889
Execute the Lua ``script``, specifying the ``numkeys`` the script
@@ -3892,7 +3895,7 @@ def eval(self, script, numkeys, *keys_and_args):
38923895
38933896
For more information check https://redis.io/commands/eval
38943897
"""
3895-
return self.execute_command("EVAL", script, numkeys, *keys_and_args)
3898+
return self._eval("EVAL", script, numkeys, *keys_and_args)
38963899

38973900
def eval_ro(self, script, numkeys, *keys_and_args):
38983901
"""
@@ -3904,7 +3907,7 @@ def eval_ro(self, script, numkeys, *keys_and_args):
39043907
39053908
For more information check https://redis.io/commands/eval_ro
39063909
"""
3907-
return self.execute_command("EVAL_RO", script, numkeys, *keys_and_args)
3910+
return self._eval("EVAL_RO", script, numkeys, *keys_and_args)
39083911

39093912
def evalsha(self, sha, numkeys, *keys_and_args):
39103913
"""

0 commit comments

Comments
 (0)