We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ceda9cb + cb83787 commit 0881019Copy full SHA for 0881019
mockredis/script.py
@@ -53,7 +53,11 @@ def _call(*call_args):
53
response = client.call(*call_args)
54
return self._python_to_lua(response)
55
56
- lua_globals.redis = {"call": _call}
+ lua_globals.redis = {"call": _call,
57
+ # TODO wrap _call with try to implement "pcall": _pcall,
58
+ "status_reply": lambda status: self._python_to_lua({"ok": status}),
59
+ "error_reply": lambda error: self._python_to_lua({"err": error})
60
+ }
61
return self._lua_to_python(lua.execute(self.script), return_status=True)
62
63
@staticmethod
0 commit comments