promise.setFailure((Exception)res);
} if (output.hasError()) {
if (output.getError().startsWith("MOVED")) {
String[] parts = output.getError().split(" ");
int slot = Integer.valueOf(parts[1]);
promise.setFailure(new RedisMovedException(slot));
} else {
promise.setFailure(new RedisException(output.getError()));
}
} else {
promise.setSuccess((T)res);