module SidekiqUniqueJobs::Script::Caller

def call_script(file_name, *args)

Returns:
  • (true, false, String, Integer, Float, nil) - returns the return value of the lua script

Options Hash: (**options)
  • :argv (Array) -- arguments to pass to the script
  • :keys (Array) -- to pass to the script

Parameters:
  • options (Hash) -- arguments to pass to the script file
  • conn (Redis) -- a redis connection
  • file_name (Symbol) -- the name of the file
  • conn (Redis) -- a redis connection
  • argv (Array) -- arguments to pass to the script
  • keys (Array) -- to pass to the the script
  • file_name (Symbol) -- the name of the file

Overloads:
  • call_script(file_name, conn, keys:, argv:)
  • call_script(file_name, keys, argv, conn)
def call_script(file_name, *args)
  conn, keys, argv = extract_args(*args)
  return do_call(file_name, conn, keys, argv) if conn
  pool = defined?(redis_pool) ? redis_pool : nil
  redis(pool) do |new_conn|
    do_call(file_name, new_conn, keys, argv)
  end
end