public interface RedisExecutor
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() |
default void |
psubscribe(redis.clients.jedis.JedisPubSub subscriber,
String... patterns)
Runs a subscriber to the given patterns.
|
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.
|
default void |
subscribe(redis.clients.jedis.JedisPubSub subscriber,
String channel)
Run a subscriber, do not return.
|
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
default void subscribe(redis.clients.jedis.JedisPubSub subscriber, String channel) throws redis.clients.jedis.exceptions.JedisException
redis.clients.jedis.exceptions.JedisException
default void psubscribe(redis.clients.jedis.JedisPubSub subscriber, String... patterns) throws redis.clients.jedis.exceptions.JedisException
subscriber
- the subscriberpatterns
- the channel patternsredis.clients.jedis.exceptions.JedisException
redis.clients.util.Pool<redis.clients.jedis.Jedis> getPool()
default void startMonitor()
default void stopMonitor()
Copyright © 2017 Nuxeo. All rights reserved.