Apply "Format" to all files, Closes #765
This commit is contained in:
@@ -26,7 +26,7 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
public Jedis() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
public Jedis(final String host) {
|
||||
super(host);
|
||||
}
|
||||
@@ -326,11 +326,11 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
*
|
||||
* @param key
|
||||
* @return Integer reply, returns the remaining time to live in seconds of a
|
||||
* key that has an EXPIRE.
|
||||
* In Redis 2.6 or older, if the Key does not exists or does not
|
||||
* have an associated expire, -1 is returned.
|
||||
* In Redis 2.8 or newer, if the Key does not have an associated expire, -1 is returned
|
||||
* or if the Key does not exists, -2 is returned.
|
||||
* key that has an EXPIRE. In Redis 2.6 or older, if the Key does
|
||||
* not exists or does not have an associated expire, -1 is returned.
|
||||
* In Redis 2.8 or newer, if the Key does not have an associated
|
||||
* expire, -1 is returned or if the Key does not exists, -2 is
|
||||
* returned.
|
||||
*/
|
||||
public Long ttl(final String key) {
|
||||
checkIsInMulti();
|
||||
@@ -2630,7 +2630,7 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
client.zinterstore(dstkey, params, sets);
|
||||
return client.getIntegerReply();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Long zlexcount(final String key, final String min, final String max) {
|
||||
checkIsInMulti();
|
||||
@@ -2639,15 +2639,16 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> zrangeByLex(final String key, final String min, final String max) {
|
||||
public Set<String> zrangeByLex(final String key, final String min,
|
||||
final String max) {
|
||||
checkIsInMulti();
|
||||
client.zrangeByLex(key, min, max);
|
||||
return new LinkedHashSet<String>(client.getMultiBulkReply());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> zrangeByLex(final String key, final String min, final String max,
|
||||
final int offset, final int count) {
|
||||
public Set<String> zrangeByLex(final String key, final String min,
|
||||
final String max, final int offset, final int count) {
|
||||
checkIsInMulti();
|
||||
client.zrangeByLex(key, min, max, offset, count);
|
||||
return new LinkedHashSet<String>(client.getMultiBulkReply());
|
||||
@@ -2666,10 +2667,11 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
checkIsInMulti();
|
||||
client.zrevrangeByLex(key, max, min, offset, count);
|
||||
return new LinkedHashSet<String>(client.getMultiBulkReply());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long zremrangeByLex(final String key, final String min, final String max) {
|
||||
public Long zremrangeByLex(final String key, final String min,
|
||||
final String max) {
|
||||
checkIsInMulti();
|
||||
client.zremrangeByLex(key, min, max);
|
||||
return client.getIntegerReply();
|
||||
@@ -3328,7 +3330,7 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
client.clusterMeet(ip, port);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
|
||||
public String clusterReset(final Reset resetType) {
|
||||
checkIsInMulti();
|
||||
client.clusterReset(resetType);
|
||||
@@ -3430,7 +3432,7 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
client.clusterFailover();
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<Object> clusterSlots() {
|
||||
checkIsInMulti();
|
||||
@@ -3459,8 +3461,8 @@ public class Jedis extends BinaryJedis implements JedisCommands,
|
||||
public Map<String, String> pubsubNumSub(String... channels) {
|
||||
checkIsInMulti();
|
||||
client.pubsubNumSub(channels);
|
||||
return BuilderFactory.PUBSUB_NUMSUB_MAP
|
||||
.build(client.getBinaryMultiBulkReply());
|
||||
return BuilderFactory.PUBSUB_NUMSUB_MAP.build(client
|
||||
.getBinaryMultiBulkReply());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user