Redis#eval

Parsed documentation:
View on GitHub
Evaluate Lua script.

@example EVAL without KEYS nor ARGV
  redis.eval("return 1")
    # => 1
@example EVAL with KEYS and ARGV as array arguments
  redis.eval("return { KEYS, ARGV }", ["k1", "k2"], ["a1", "a2"])
    # => [["k1", "k2"], ["a1", "a2"]]
@example EVAL with KEYS and ARGV in a hash argument
  redis.eval("return { KEYS, ARGV }", :keys => ["k1", "k2"], :argv => ["a1", "a2"])
    # => [["k1", "k2"], ["a1", "a2"]]

@param [Array<String>] keys optional array with keys to pass to the script
@param [Array<String>] argv optional array with arguments to pass to the script
@param [Hash] options
  - `:keys => Array<String>`: optional array with keys to pass to the script
  - `:argv => Array<String>`: optional array with arguments to pass to the script
@return depends on the script

@see #script
@see #evalsha
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.