public class LuaScriptState extends Object
| Constructor and Description |
|---|
LuaScriptState(LuaScript luaScriptType,
io.vertx.redis.RedisClient redisClient,
boolean logoutput) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getLogoutput() |
String |
getScript() |
String |
getSha() |
void |
loadLuaScript(RedisCommand redisCommand,
int executionCounter)
Load the get script into redis and store the sha in the class member sha.
|
void |
setLogoutput(boolean logoutput) |
void |
setScript(String script) |
void |
setSha(String sha) |
public LuaScriptState(LuaScript luaScriptType, io.vertx.redis.RedisClient redisClient, boolean logoutput)
public void loadLuaScript(RedisCommand redisCommand, int executionCounter)
redisCommand - the redis command that should be executed, after the script is loaded.executionCounter - a counter to control recursion depthpublic String getScript()
public void setScript(String script)
public boolean getLogoutput()
public void setLogoutput(boolean logoutput)
public String getSha()
public void setSha(String sha)
Copyright © 2016–2017. All rights reserved.