public interface RScript extends RScriptAsync
Modifier and Type | Interface and Description |
---|---|
static class |
RScript.Mode |
static class |
RScript.ReturnType |
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> 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
|
List<Boolean> |
scriptExists(String... shaDigests)
Checks for presence Lua scripts in Redis script cache by SHA-1 digest.
|
void |
scriptFlush()
Flushes Lua script cache.
|
void |
scriptKill()
Kills currently executed Lua script
|
String |
scriptLoad(String luaScript)
Loads Lua script into Redis scripts cache and returns its SHA-1 digest
|
evalAsync, evalAsync, evalAsync, evalShaAsync, evalShaAsync, evalShaAsync, scriptExistsAsync, scriptExistsAsync, scriptFlushAsync, scriptKillAsync, scriptLoadAsync, scriptLoadAsync
<R> R evalSha(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> R evalSha(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> R evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return type<R> R eval(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> R eval(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> R eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return typeString scriptLoad(String luaScript)
luaScript
- - lua scriptList<Boolean> scriptExists(String... shaDigests)
shaDigests
- - collection of SHA-1 digestsvoid scriptKill()
void scriptFlush()
Copyright © 2014–2020 Redisson. All rights reserved.