org.springframework.data.redis.connection
Interface RedisScriptingCommands

All Known Subinterfaces:
RedisCommands, RedisConnection, StringRedisConnection
All Known Implementing Classes:
DefaultStringRedisConnection, JedisConnection, JredisConnection, LettuceConnection, SrpConnection

public interface RedisScriptingCommands

Scripting commands.


Method Summary
<T> T
eval(byte[] script, ReturnType returnType, int numKeys, byte[]... keysAndArgs)
          Evaluate given script.
<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.
 

Method Detail

scriptFlush

void scriptFlush()
Flush lua script cache.

See Also:
http://redis.io/commands/script-flush

scriptKill

void scriptKill()
Kill current lua script execution.

See Also:
http://redis.io/commands/script-kill

scriptLoad

String scriptLoad(byte[] script)
Load lua script into scripts cache, without executing it.
Execute the script by calling #evalSha(String, ReturnType, int, byte[]).

Parameters:
script -
Returns:
See Also:
http://redis.io/commands/script-load

scriptExists

List<Boolean> scriptExists(String... scriptShas)
Check if given scriptShas exist in script cache.

Parameters:
scriptShas -
Returns:
one entry per given scriptSha in returned list.
See Also:
http://redis.io/commands/script-exits

eval

<T> T eval(byte[] script,
           ReturnType returnType,
           int numKeys,
           byte[]... keysAndArgs)
Evaluate given script.

Parameters:
script -
returnType -
numKeys -
keysAndArgs -
Returns:
See Also:
http://redis.io/commands/eval

evalSha

<T> T evalSha(String scriptSha,
              ReturnType returnType,
              int numKeys,
              byte[]... keysAndArgs)
Evaluate given scriptSha.

Parameters:
script -
returnType -
numKeys -
keysAndArgs -
Returns:
See Also:
http://redis.io/commands/evalsha