code: protected void executeScript(URL scriptUrl) {
          log.debug("Executing script '{}'", scriptUrl);
          final Jedis jedis = pool.getResource();
          try (BufferedReader reader = new BufferedReader(new InputStreamReader(scriptUrl.openStream(), StandardCharsets.UTF_8))) {
              reader.lines()
                      .filter(line -> !Strings.isNullOrEmpty(line) && line.charAt(0) != '#' && !line.startsWith("//"))
                      .forEach(line -> {
                          try {
                              log.trace("execute: {}", line);
                              String[] args = line.split(" ", 3);
                              String command = null;
                              if (args.length == 1) {
                                  command = String.format("return redis.call('%s')", args[0]);
                              } else if (args.length == 2) {
                                  command = String.format("return redis.call('%s', '%s')", args[0], args[1]);
                              } else if (args.length == 3) {
                                  command = String.format("return redis.call('%s', '%s', '%s')", args[0], args[1], unwrapQuotes(args[2]));
                              } else {
                                  log.error("Unexpected number of script arguments {}", args.length);
                              }
                              log.trace("command: {}", command);
                              Object result = jedis.eval(command);
                          } catch (Exception e) {
                              log.error("Failed to execute '{}'", line, e);
                          }
                      });
          } catch (IOException e) {
              log.error("Failed to execute script '{}'", scriptUrl, e);
              pool.returnBrokenResource(jedis);
  //            jedis = null;
          } finally {
              if (jedis != null) {
                  pool.returnResource(jedis);
              }
          }
      }
docs: Execute a script.
  
  @param scriptUrl