public class RedissonScript extends Object implements RScript
RScript.Mode, RScript.ReturnType
Constructor and Description |
---|
RedissonScript(CommandAsyncExecutor commandExecutor) |
RedissonScript(CommandAsyncExecutor commandExecutor,
Codec codec) |
Modifier and Type | Method and Description |
---|---|
<R> R |
eval(RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType)
Executes Lua script
|
<R> R |
eval(RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script
|
<R> R |
eval(String key,
RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script
|
<R> RFuture<R> |
evalAsync(RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType)
Executes Lua script
|
<R> RFuture<R> |
evalAsync(RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script
|
<R> RFuture<R> |
evalAsync(String key,
RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script
|
<R> R |
evalSha(RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
<R> R |
evalSha(RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
<R> R |
evalSha(String key,
RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
<R> RFuture<R> |
evalShaAsync(RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
<R> RFuture<R> |
evalShaAsync(RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
<R> RFuture<R> |
evalShaAsync(String key,
RScript.Mode mode,
Codec codec,
String shaDigest,
RScript.ReturnType returnType,
List<Object> keys,
Object... values) |
<R> RFuture<R> |
evalShaAsync(String key,
RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
List<Boolean> |
scriptExists(String... shaDigests)
Checks for presence Lua scripts in Redis script cache by SHA-1 digest.
|
List<Boolean> |
scriptExists(String key,
String... shaDigests) |
RFuture<List<Boolean>> |
scriptExistsAsync(String... shaDigests)
Checks for presence Lua scripts in Redis script cache by SHA-1 digest.
|
RFuture<List<Boolean>> |
scriptExistsAsync(String key,
String... shaDigests)
Checks for presence Lua scripts in Redis script cache by SHA-1 digest.
|
void |
scriptFlush()
Flushes Lua script cache.
|
void |
scriptFlush(String key) |
RFuture<Void> |
scriptFlushAsync()
Flushes Lua script cache.
|
RFuture<Void> |
scriptFlushAsync(String key) |
void |
scriptKill()
Kills currently executed Lua script
|
void |
scriptKill(String key) |
RFuture<Void> |
scriptKillAsync()
Kills currently executed Lua script
|
RFuture<Void> |
scriptKillAsync(String key) |
String |
scriptLoad(String luaScript)
Loads Lua script into Redis scripts cache and returns its SHA-1 digest
|
String |
scriptLoad(String key,
String luaScript) |
RFuture<String> |
scriptLoadAsync(String luaScript)
Loads Lua script into Redis scripts cache and returns its SHA-1 digest
|
RFuture<String> |
scriptLoadAsync(String key,
String luaScript)
Loads Lua script into Redis scripts cache and returns its SHA-1 digest
|
public RedissonScript(CommandAsyncExecutor commandExecutor)
public RedissonScript(CommandAsyncExecutor commandExecutor, Codec codec)
public String scriptLoad(String luaScript)
RScript
scriptLoad
in interface RScript
luaScript
- - lua scriptpublic RFuture<String> scriptLoadAsync(String luaScript)
RScriptAsync
scriptLoadAsync
in interface RScriptAsync
luaScript
- - lua scriptpublic RFuture<String> scriptLoadAsync(String key, String luaScript)
RScriptAsync
scriptLoadAsync
in interface RScriptAsync
key
- - used to locate Redis node in Cluster which stores cached Lua scriptluaScript
- - lua scriptpublic <R> R eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
RScript
public <R> R eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScript
eval
in interface RScript
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScriptAsync
evalAsync
in interface RScriptAsync
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> R evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
RScript
public <R> R evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScript
evalSha
in interface RScript
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScriptAsync
evalShaAsync
in interface RScriptAsync
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> RFuture<R> evalShaAsync(String key, RScript.Mode mode, Codec codec, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
public void scriptKill()
RScript
scriptKill
in interface RScript
public void scriptKill(String key)
public RFuture<Void> scriptKillAsync()
RScriptAsync
scriptKillAsync
in interface RScriptAsync
public List<Boolean> scriptExists(String... shaDigests)
RScript
scriptExists
in interface RScript
shaDigests
- - collection of SHA-1 digestspublic RFuture<List<Boolean>> scriptExistsAsync(String... shaDigests)
RScriptAsync
scriptExistsAsync
in interface RScriptAsync
shaDigests
- - collection of SHA-1 digestspublic RFuture<List<Boolean>> scriptExistsAsync(String key, String... shaDigests)
RScriptAsync
scriptExistsAsync
in interface RScriptAsync
key
- - used to locate Redis node in Cluster which stores cached Lua scriptshaDigests
- - collection of SHA-1 digestspublic void scriptFlush()
RScript
scriptFlush
in interface RScript
public void scriptFlush(String key)
public RFuture<Void> scriptFlushAsync()
RScriptAsync
scriptFlushAsync
in interface RScriptAsync
public <R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
RScriptAsync
evalShaAsync
in interface RScriptAsync
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return typepublic <R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
RScriptAsync
evalAsync
in interface RScriptAsync
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typepublic <R> RFuture<R> evalShaAsync(String key, RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScriptAsync
evalShaAsync
in interface RScriptAsync
R
- - type of resultkey
- - used to locate Redis node in Cluster which stores cached Lua scriptmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> RFuture<R> evalAsync(String key, RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScriptAsync
evalAsync
in interface RScriptAsync
R
- - type of resultkey
- - used to locate Redis node in Cluster which stores cached Lua scriptmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> R evalSha(String key, RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScript
evalSha
in interface RScript
R
- - type of resultkey
- - used to locate Redis node in Cluster which stores cached Lua scriptmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptpublic <R> R eval(String key, RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScript
eval
in interface RScript
R
- - type of resultkey
- - used to locate Redis node in Cluster which stores cached Lua scriptmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in scriptCopyright © 2014–2020 Redisson. All rights reserved.