K - The type of keys that may be passed during script executionpublic interface ScriptExecutor<K>
RedisScripts| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(RedisScript<T> script,
List<K> keys,
Object... args)
Executes the given
RedisScript |
<T> T |
execute(RedisScript<T> script,
RedisSerializer<?> argsSerializer,
RedisSerializer<T> resultSerializer,
List<K> keys,
Object... args)
Executes the given
RedisScript, using the provided RedisSerializers to serialize the script
arguments and result. |
<T> T execute(RedisScript<T> script, List<K> keys, Object... args)
RedisScriptscript - The script to executekeys - Any keys that need to be passed to the scriptargs - Any args that need to be passed to the scriptRedisScript.getResultType() is null, likely indicating a
throw-away status reply (i.e. "OK")<T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSerializer<T> resultSerializer, List<K> keys, Object... args)
RedisScript, using the provided RedisSerializers to serialize the script
arguments and result.script - The script to executeargsSerializer - The RedisSerializer to use for serializing argsresultSerializer - The RedisSerializer to use for serializing the script return valuekeys - Any keys that need to be passed to the scriptargs - Any args that need to be passed to the scriptRedisScript.getResultType() is null, likely indicating a
throw-away status reply (i.e. "OK")