Class ScriptUtils
java.lang.Object
net.greghaines.jesque.utils.ScriptUtils
ScriptUtils contains utility methods for executing Lua scripts in Redis.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadScript(String resourceName) Read a script into a single-line string suitable for use in a RedisEVALstatement.
-
Method Details
-
readScript
Read a script into a single-line string suitable for use in a RedisEVALstatement.- Parameters:
resourceName- the name of the script resource to read- Returns:
- the string form of the script
- Throws:
IOException- if something goes wrong
-