Getting error: Wrong number of args calling Redis command From Lua script

Viewed 3055

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?

1 Answers

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).

Related