public interface RScriptAsync
Modifier and Type | Method and Description |
---|---|
<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> 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,
String shaDigest,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
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.
|
RFuture<Void> |
scriptFlushAsync()
Flushes Lua script cache.
|
RFuture<Void> |
scriptKillAsync()
Kills currently executed Lua script
|
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
|
<R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in script<R> RFuture<R> evalShaAsync(String key, RScript.Mode mode, String shaDigest, RScript.ReturnType returnType, List<Object> keys, Object... values)
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 script<R> RFuture<R> evalShaAsync(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return type<R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typekeys
- - keys available through KEYS param in scriptvalues
- - values available through VALUES param in script<R> RFuture<R> evalAsync(String key, RScript.Mode mode, String luaScript, RScript.ReturnType returnType, List<Object> keys, Object... values)
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 script<R> RFuture<R> evalAsync(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typeRFuture<String> scriptLoadAsync(String luaScript)
luaScript
- - lua scriptRFuture<String> scriptLoadAsync(String key, String luaScript)
key
- - used to locate Redis node in Cluster which stores cached Lua scriptluaScript
- - lua scriptRFuture<List<Boolean>> scriptExistsAsync(String... shaDigests)
shaDigests
- - collection of SHA-1 digestsRFuture<List<Boolean>> scriptExistsAsync(String key, String... shaDigests)
key
- - used to locate Redis node in Cluster which stores cached Lua scriptshaDigests
- - collection of SHA-1 digestsCopyright © 2014–2020 Redisson. All rights reserved.