Evaluate Lua script by its SHA.
EVALSHA without KEYS nor ARGV
redis.evalsha(sha) # => <depends on script>
EVALSHA with KEYS and ARGV as array arguments
redis.evalsha(sha, ["k1", "k2"], ["a1", "a2"]) # => <depends on script>
EVALSHA with KEYS and ARGV in a hash argument
redis.evalsha(sha, :keys => ["k1", "k2"], :argv => ["a1", "a2"]) # => <depends on script>
Parameters:
optional array with keys to pass to the script
optional array with arguments to pass to the script
:keys => Array<String>
:argv => Array<String>
Returns:
depends on the script
See Also:
2260 2261 2262
# File 'lib/redis.rb', line 2260 def evalsha(*args) _eval(:evalsha, args) end