public class LuaScriptExecutor extends Object
| Constructor and Description |
|---|
LuaScriptExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(String luaFileName,
redis.clients.jedis.JedisCluster jedisCluster,
String leaseKey,
String bmIdentifier)
Method to execute loaded lua script in the Redis cluster
|
static String |
loadLuaScript(String fileName)
This is to load the lua script in our java program.
|
public static String loadLuaScript(String fileName)
fileName - The file that will be loaded.public static void execute(String luaFileName, redis.clients.jedis.JedisCluster jedisCluster, String leaseKey, String bmIdentifier)
luaFileName - The lua script file to be executedjedisCluster - Redis cluster where the script is intended to be executedleaseKey - Key for which the value will be set in RedisbmIdentifier - Balance Manager identifier for which we are executing the lua scriptCopyright © 2023. All rights reserved.