public interface RedisExecutor
Modifier and Type | Field and Description |
---|---|
static RedisExecutor |
NOOP |
Modifier and Type | Method and Description |
---|---|
Object |
evalsha(byte[] sha1,
List<byte[]> keys,
List<byte[]> args)
Evaluates the script of the given SHA1 with the given keys and arguments.
|
Object |
evalsha(String sha1,
List<String> keys,
List<String> args)
Evaluates the script of the given SHA1 with the given keys and arguments.
|
<T> T |
execute(RedisCallable<T> call) |
redis.clients.util.Pool<redis.clients.jedis.Jedis> |
getPool() |
String |
scriptLoad(String script)
Loads the script into Redis.
|
default void |
startMonitor()
Start to trace Redis activity only for debug purpose.
|
default void |
stopMonitor()
Stop tracing Redis activity.
|
static final RedisExecutor NOOP
String scriptLoad(String script) throws redis.clients.jedis.exceptions.JedisException
redis.clients.jedis.exceptions.JedisException
Object evalsha(String sha1, List<String> keys, List<String> args) throws redis.clients.jedis.exceptions.JedisException
Can reload the script if the Redis instance restarted and the script isn't available anymore.
sha1
- the script SHA1keys
- the keysargs
- the argumentsredis.clients.jedis.exceptions.JedisException
Object evalsha(byte[] sha1, List<byte[]> keys, List<byte[]> args) throws redis.clients.jedis.exceptions.JedisException
Can reload the script if the Redis instance restarted and the script isn't available anymore.
sha1
- the script SHA1keys
- the keysargs
- the argumentsredis.clients.jedis.exceptions.JedisException
<T> T execute(RedisCallable<T> call) throws redis.clients.jedis.exceptions.JedisException
redis.clients.jedis.exceptions.JedisException
redis.clients.util.Pool<redis.clients.jedis.Jedis> getPool()
default void startMonitor()
default void stopMonitor()
Copyright © 2016 Nuxeo SA. All rights reserved.