Class ScriptUtils

java.lang.Object
net.greghaines.jesque.utils.ScriptUtils

public final class ScriptUtils extends Object
ScriptUtils contains utility methods for executing Lua scripts in Redis.
  • Method Details

    • readScript

      public static String readScript(String resourceName) throws IOException
      Read a script into a single-line string suitable for use in a Redis EVAL statement.
      Parameters:
      resourceName - the name of the script resource to read
      Returns:
      the string form of the script
      Throws:
      IOException - if something goes wrong