K
- Key type.V
- Value type.public interface RedisScriptingAsyncCommands<K,V>
Modifier and Type | Method and Description |
---|---|
String |
digest(V script)
Create a SHA1 digest from a Lua script.
|
<T> RedisFuture<T> |
eval(String script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> RedisFuture<T> |
eval(String script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> RedisFuture<T> |
evalsha(String digest,
ScriptOutputType type,
K... keys)
Evaluates a script cached on the server side by its SHA1 digest.
|
<T> RedisFuture<T> |
evalsha(String digest,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
RedisFuture<List<Boolean>> |
scriptExists(String... digests)
Check existence of scripts in the script cache.
|
RedisFuture<String> |
scriptFlush()
Remove all the scripts from the script cache.
|
RedisFuture<String> |
scriptKill()
Kill the script currently in execution.
|
RedisFuture<String> |
scriptLoad(V script)
Load the specified Lua script into the script cache.
|
<T> RedisFuture<T> eval(String script, ScriptOutputType type, K... keys)
T
- expected return type.script
- Lua 5.1 script.type
- output type.keys
- key names.<T> RedisFuture<T> eval(String script, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.<T> RedisFuture<T> evalsha(String digest, ScriptOutputType type, K... keys)
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.<T> RedisFuture<T> evalsha(String digest, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.values
- the values.RedisFuture<List<Boolean>> scriptExists(String... digests)
digests
- script digests.RedisFuture<String> scriptFlush()
RedisFuture<String> scriptKill()
RedisFuture<String> scriptLoad(V script)
script
- script content.Copyright © 2021 lettuce.io. All rights reserved.