3

I wanted to test out Lua scripting with Redis but I keep getting error messages for the simplest commands.

Here is a screenshot:

enter image description here

Why does this simple command say that I don't provide enough arguments?

5
  • It would help to know what version of Redis you are using. Commented Nov 13, 2017 at 4:01
  • I am using Redis 3.2.11. The error dissappeared for some reason. Don't know why. Commented Nov 13, 2017 at 5:41
  • The code in your screenshot is missing is comma (',') between the last two arguments (0 and -1) given to ZRANGE Commented Nov 13, 2017 at 9:45
  • That is true, thank you! Commented Nov 13, 2017 at 12:33
  • Itamar Haber I watched your video on youtube, thank you so much for the tutorial. By the way do you know why the Stack window is empty when I debug? I posted the problem in another post. Commented Nov 13, 2017 at 12:36

1 Answer 1

1

I don't see any error running this code on a pre-release of v3.2:

redis.call("ZADD", "user", 1, "one")
return redis.call("ZRANGE", "user", 0, -1)

I get one printed to the Output window. I do get the same error if I skip one of the parameters in ZADD or ZRANGE calls, for example when trying to run redis.call("ZADD", "user", 1).

Sign up to request clarification or add additional context in comments.

2 Comments

By the way do you get stack window to show information? I have issues with it stackoverflow.com/questions/47251176/…
I answered in that question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.