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)
RScriptscriptLoad in interface RScriptluaScript - - lua scriptpublic RFuture<String> scriptLoadAsync(String luaScript)
RScriptAsyncscriptLoadAsync in interface RScriptAsyncluaScript - - lua scriptpublic RFuture<String> scriptLoadAsync(String key, String luaScript)
RScriptAsyncscriptLoadAsync in interface RScriptAsynckey - - 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)
RScriptpublic <R> R eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScripteval in interface RScriptR - - 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)
RScriptAsyncevalAsync in interface RScriptAsyncR - - 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)
RScriptpublic <R> R evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
RScriptevalSha in interface RScriptR - - 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)
RScriptAsyncevalShaAsync in interface RScriptAsyncR - - 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()
RScriptscriptKill in interface RScriptpublic void scriptKill(String key)
public RFuture<Void> scriptKillAsync()
RScriptAsyncscriptKillAsync in interface RScriptAsyncpublic List<Boolean> scriptExists(String... shaDigests)
RScriptscriptExists in interface RScriptshaDigests - - collection of SHA-1 digestspublic RFuture<List<Boolean>> scriptExistsAsync(String... shaDigests)
RScriptAsyncscriptExistsAsync in interface RScriptAsyncshaDigests - - collection of SHA-1 digestspublic RFuture<List<Boolean>> scriptExistsAsync(String key, String... shaDigests)
RScriptAsyncscriptExistsAsync in interface RScriptAsynckey - - used to locate Redis node in Cluster which stores cached Lua scriptshaDigests - - collection of SHA-1 digestspublic void scriptFlush()
RScriptscriptFlush in interface RScriptpublic void scriptFlush(String key)
public RFuture<Void> scriptFlushAsync()
RScriptAsyncscriptFlushAsync in interface RScriptAsyncpublic <R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
RScriptAsyncevalShaAsync in interface RScriptAsyncR - - type of resultmode - - execution modeshaDigest - - SHA-1 digestreturnType - - return typepublic <R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
RScriptAsyncevalAsync in interface RScriptAsyncR - - 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)
RScriptAsyncevalShaAsync in interface RScriptAsyncR - - 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)
RScriptAsyncevalAsync in interface RScriptAsyncR - - 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)
RScriptevalSha in interface RScriptR - - 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)
RScripteval in interface RScriptR - - 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–2021 Redisson. All rights reserved.