All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.risedragone.jedis.JedisClient Maven / Gradle / Ivy

The newest version!
package com.github.risedragone.jedis;

import java.util.List;

import redis.clients.jedis.BinaryJedisCommands;
import redis.clients.jedis.JedisCommands;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.MultiKeyBinaryCommands;
import redis.clients.jedis.MultiKeyCommands;
import redis.clients.jedis.Response;

public interface JedisClient extends BinaryJedisCommands, MultiKeyBinaryCommands, JedisCommands, MultiKeyCommands {

	List syncAndReturnAll(PipelineCallback callback);

	void sync(PipelineCallback callback);

	List> execGetResponse(TransactionCallback callback);

	void exec(TransactionCallback callback);

	 T submit(JedisCallback callback);

	JedisPool getJedisPool();

	boolean tryLock(String key, int expireSeconds);

	boolean tryLock(String key, int expireSeconds, long waitMillis, int tryTimes);

	void unlock(String key);

}