View on GitHub
Evaluate Lua script by its SHA.
@example EVALSHA without KEYS nor ARGV
redis.evalsha(sha)
# => <depends on script>
@example EVALSHA with KEYS and ARGV as array arguments
redis.evalsha(sha, ["k1", "k2"], ["a1", "a2"])
# => <depends on script>
@example EVALSHA with KEYS and ARGV in a hash argument
redis.evalsha(sha, :keys => ["k1", "k2"], :argv => ["a1", "a2"])
# => <depends on script>
@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 #eval