Implement all Jedis cluster commands and rename RedisSlot class

This commit is contained in:
Marcos Nils
2013-12-20 16:56:29 -03:00
parent 0bc27ac3a2
commit af72248c22
4 changed files with 726 additions and 321 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,6 @@
package redis.clients.jedis;
import redis.clients.jedis.exceptions.JedisAskDataException;
import redis.clients.jedis.exceptions.JedisMovedDataException;
public abstract class JedisClusterCommand<T> {
@@ -15,8 +16,10 @@ public abstract class JedisClusterCommand<T> {
public T run() {
try {
return execute();
} catch (JedisMovedDataException e) {
//TODO: Retry here
} catch (JedisMovedDataException jme) {
//TODO: Do Retry here
} catch (JedisAskDataException jae) {
//TODO: Do ASK here
}
return null;
}