Skip to content

Convrting LUA keys and args to strings to comply with redis #107

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

amotzg
Copy link
Contributor

@amotzg amotzg commented Jun 23, 2016

This PR replace #92. It is made on an updated master.
This is required when passing non-string keys or arguments to Lua scripts.

@@ -24,7 +24,7 @@ def __call__(self, keys=[], args=[], client=None):
if not client.script_exists(self.sha)[0]:
self.sha = client.script_load(self.script)

return self._execute_lua(keys, args, client)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some unit tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course.
I'll add it to test_script.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants