public interface RScriptRx
Modifier and Type | Method and Description |
---|---|
<R> io.reactivex.Maybe<R> |
eval(RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType)
Executes Lua script
|
<R> io.reactivex.Maybe<R> |
eval(RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script
|
<R> io.reactivex.Maybe<R> |
eval(String key,
RScript.Mode mode,
String luaScript,
RScript.ReturnType returnType,
List<Object> keys,
Object... values)
Executes Lua script
|
<R> io.reactivex.Maybe<R> |
evalSha(RScript.Mode mode,
String shaDigest,
RScript.ReturnType returnType)
Executes Lua script stored in Redis scripts cache by SHA-1 digest
|
<R> io.reactivex.Maybe<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> io.reactivex.Maybe<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
|
io.reactivex.Single<List<Boolean>> |
scriptExists(String... shaDigests)
Checks for presence Lua scripts in Redis script cache by SHA-1 digest.
|
io.reactivex.Completable |
scriptFlush()
Flushes Lua script cache.
|
io.reactivex.Completable |
scriptKill()
Kills currently executed Lua script
|
io.reactivex.Single<String> |
scriptLoad(String luaScript)
Loads Lua script into Redis scripts cache and returns its SHA-1 digest
|
io.reactivex.Completable scriptFlush()
<R> io.reactivex.Maybe<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> io.reactivex.Maybe<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> io.reactivex.Maybe<R> evalSha(RScript.Mode mode, String shaDigest, RScript.ReturnType returnType)
R
- - type of resultmode
- - execution modeshaDigest
- - SHA-1 digestreturnType
- - return type<R> io.reactivex.Maybe<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> io.reactivex.Maybe<R> eval(RScript.Mode mode, String luaScript, RScript.ReturnType returnType)
R
- - type of resultmode
- - execution modeluaScript
- - lua scriptreturnType
- - return type<R> io.reactivex.Maybe<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 scriptio.reactivex.Single<String> scriptLoad(String luaScript)
luaScript
- - lua scriptio.reactivex.Single<List<Boolean>> scriptExists(String... shaDigests)
shaDigests
- - collection of SHA-1 digestsio.reactivex.Completable scriptKill()
Copyright © 2014–2020 Redisson. All rights reserved.