public interface RedisScriptingCommands
Modifier and Type | Method and Description |
---|---|
<T> T |
eval(byte[] script,
ReturnType returnType,
int numKeys,
byte[]... keysAndArgs)
Evaluate given
script . |
<T> T |
evalSha(byte[] scriptSha,
ReturnType returnType,
int numKeys,
byte[]... keysAndArgs)
Evaluate given
scriptSha . |
<T> T |
evalSha(String scriptSha,
ReturnType returnType,
int numKeys,
byte[]... keysAndArgs)
Evaluate given
scriptSha . |
List<Boolean> |
scriptExists(String... scriptShas)
Check if given
scriptShas exist in script cache. |
void |
scriptFlush()
Flush lua script cache.
|
void |
scriptKill()
Kill current lua script execution.
|
String |
scriptLoad(byte[] script)
Load lua script into scripts cache, without executing it.
|
void scriptFlush()
void scriptKill()
@Nullable String scriptLoad(byte[] script)
#evalSha(byte[], ReturnType, int, byte[]...)
.script
- must not be null.@Nullable List<Boolean> scriptExists(String... scriptShas)
scriptShas
exist in script cache.scriptShas
- List
or null when used in pipeline /
transaction.@Nullable <T> T eval(byte[] script, ReturnType returnType, int numKeys, byte[]... keysAndArgs)
script
.script
- must not be null.returnType
- must not be null.numKeys
- keysAndArgs
- must not be null.@Nullable <T> T evalSha(String scriptSha, ReturnType returnType, int numKeys, byte[]... keysAndArgs)
scriptSha
.scriptSha
- must not be null.returnType
- must not be null.numKeys
- keysAndArgs
- must not be null.@Nullable <T> T evalSha(byte[] scriptSha, ReturnType returnType, int numKeys, byte[]... keysAndArgs)
scriptSha
.scriptSha
- must not be null.returnType
- must not be null.numKeys
- keysAndArgs
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.