IJedis renamed ro JedisCommands
This commit is contained in:
@@ -12,7 +12,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import redis.clients.jedis.Client.LIST_POSITION;
|
import redis.clients.jedis.Client.LIST_POSITION;
|
||||||
|
|
||||||
public class Jedis implements IJedis {
|
public class Jedis implements JedisCommands {
|
||||||
private Client client = null;
|
private Client client = null;
|
||||||
|
|
||||||
public Jedis(String host) {
|
public Jedis(String host) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import java.util.Set;
|
|||||||
/**
|
/**
|
||||||
* Common interface for sharded and non-sharded Jedis
|
* Common interface for sharded and non-sharded Jedis
|
||||||
*/
|
*/
|
||||||
public interface IJedis {
|
public interface JedisCommands {
|
||||||
String set(String key, String value);
|
String set(String key, String value);
|
||||||
|
|
||||||
String get(String key);
|
String get(String key);
|
||||||
@@ -10,7 +10,7 @@ import redis.clients.jedis.Client.LIST_POSITION;
|
|||||||
import redis.clients.util.Hashing;
|
import redis.clients.util.Hashing;
|
||||||
import redis.clients.util.Sharded;
|
import redis.clients.util.Sharded;
|
||||||
|
|
||||||
public class ShardedJedis extends Sharded<Jedis, JedisShardInfo> implements IJedis {
|
public class ShardedJedis extends Sharded<Jedis, JedisShardInfo> implements JedisCommands {
|
||||||
public ShardedJedis(List<JedisShardInfo> shards) {
|
public ShardedJedis(List<JedisShardInfo> shards) {
|
||||||
super(shards);
|
super(shards);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user