Class DefaultScriptExecutor<K>

java.lang.Object
org.springframework.data.redis.core.script.DefaultScriptExecutor<K>
Type Parameters:
K - The type of keys that may be passed during script execution
All Implemented Interfaces:
ScriptExecutor<K>

public class DefaultScriptExecutor<K> extends Object implements ScriptExecutor<K>
Default implementation of ScriptExecutor. Optimizes performance by attempting to execute script first using evalsha, then falling back to eval if Redis has not yet cached the script. Evalsha is not attempted if the script is executed in a pipeline or transaction.
Author:
Jennifer Hickey, Christoph Strobl, Thomas Darimont, Mark Paluch