Package org.redisson
Class RedissonScript
- java.lang.Object
-
- org.redisson.RedissonScript
-
- All Implemented Interfaces:
RScript
,RScriptAsync
public class RedissonScript extends Object implements RScript
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.redisson.api.RScript
RScript.Mode, RScript.ReturnType
-
-
Constructor Summary
Constructors Constructor Description RedissonScript(CommandAsyncExecutor commandExecutor)
-
Method Summary
-
-
-
Constructor Detail
-
RedissonScript
public RedissonScript(CommandAsyncExecutor commandExecutor)
-
-
Method Detail
-
scriptLoad
public String scriptLoad(String luaScript)
- Specified by:
scriptLoad
in interfaceRScript
-
scriptLoadAsync
public RFuture<String> scriptLoadAsync(String luaScript)
- Specified by:
scriptLoadAsync
in interfaceRScriptAsync
-
scriptLoadAsync
public RFuture<String> scriptLoadAsync(String key, String luaScript)
- Specified by:
scriptLoadAsync
in interfaceRScriptAsync
-
eval
public <R> R eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
-
eval
public <R> R eval(RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType)
-
eval
public <R> R eval(String key, RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType)
-
eval
public <R> R eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
-
eval
public <R> R eval(RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
-
eval
public <R> R eval(String key, RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
-
evalAsync
public <R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
- Specified by:
evalAsync
in interfaceRScriptAsync
-
evalAsync
public <R> RFuture<R> evalAsync(RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
- Specified by:
evalAsync
in interfaceRScriptAsync
-
evalAsync
public <R> RFuture<R> evalAsync(String key, RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
- Specified by:
evalAsync
in interfaceRScriptAsync
-
evalSha
public <R> R evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
-
evalSha
public <R> R evalSha(RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType)
-
evalSha
public <R> R evalSha(String key, RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
-
evalSha
public <R> R evalSha(String key, RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType)
-
evalSha
public <R> R evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
-
evalSha
public <R> R evalSha(RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
-
evalSha
public <R> R evalSha(String key, RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
-
evalShaAsync
public <R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
- Specified by:
evalShaAsync
in interfaceRScriptAsync
-
evalShaAsync
public <R> RFuture<R> evalShaAsync(RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
- Specified by:
evalShaAsync
in interfaceRScriptAsync
-
evalShaAsync
public <R> RFuture<R> evalShaAsync(String key, RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
- Specified by:
evalShaAsync
in interfaceRScriptAsync
-
scriptKill
public void scriptKill()
- Specified by:
scriptKill
in interfaceRScript
-
scriptKill
public void scriptKill(String key)
-
scriptKillAsync
public RFuture<Void> scriptKillAsync()
- Specified by:
scriptKillAsync
in interfaceRScriptAsync
-
scriptExists
public List<Boolean> scriptExists(String... shaDigests)
- Specified by:
scriptExists
in interfaceRScript
-
scriptExistsAsync
public RFuture<List<Boolean>> scriptExistsAsync(String... shaDigests)
- Specified by:
scriptExistsAsync
in interfaceRScriptAsync
-
scriptExistsAsync
public RFuture<List<Boolean>> scriptExistsAsync(String key, String... shaDigests)
- Specified by:
scriptExistsAsync
in interfaceRScriptAsync
-
scriptFlush
public void scriptFlush()
- Specified by:
scriptFlush
in interfaceRScript
-
scriptFlush
public void scriptFlush(String key)
-
scriptFlushAsync
public RFuture<Void> scriptFlushAsync()
- Specified by:
scriptFlushAsync
in interfaceRScriptAsync
-
evalShaAsync
public <R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
- Specified by:
evalShaAsync
in interfaceRScriptAsync
-
evalShaAsync
public <R> RFuture<R> evalShaAsync(RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType)
- Specified by:
evalShaAsync
in interfaceRScriptAsync
-
evalAsync
public <R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
- Specified by:
evalAsync
in interfaceRScriptAsync
-
evalAsync
public <R> RFuture<R> evalAsync(RScript.Mode mode, Codec codec, String luaScript, RScript.ReturnType returnType)
- Specified by:
evalAsync
in interfaceRScriptAsync
-
-