Skip to content

Commit

Permalink
Expanded deprecated comment, fixed a misspelling of DECRBY.
Browse files Browse the repository at this point in the history
radifalco authored and HeartSaVioR committed Nov 13, 2014
1 parent d286138 commit cbf26df
Showing 4 changed files with 15 additions and 7 deletions.
9 changes: 8 additions & 1 deletion src/main/java/redis/clients/jedis/BinaryJedis.java
Original file line number Diff line number Diff line change
@@ -563,7 +563,7 @@ public Long msetnx(final byte[]... keysvalues) {
}

/**
* DECRRBY work just like {@link #decr(byte[]) INCR} but instead to
* DECRBY work just like {@link #decr(byte[]) INCR} but instead to
* decrement by 1 the decrement is integer.
* <p>
* INCR commands are limited to 64 bit signed integers.
@@ -2126,11 +2126,18 @@ public List<byte[]> brpop(final int timeout, final byte[]... keys) {
return brpop(getArgsAddTimeout(timeout, keys));
}


/**
* @deprecated unusable command, this command will be removed in 3.0.0.
*/
@Deprecated
public List<byte[]> blpop(byte[] arg) {
return blpop(new byte[][]{arg});
}

/**
* @deprecated unusable command, this command will be removed in 3.0.0.
*/
@Deprecated
public List<byte[]> brpop(byte[] arg) {
return brpop(new byte[][]{arg});
5 changes: 3 additions & 2 deletions src/main/java/redis/clients/jedis/BinaryJedisCommands.java
Original file line number Diff line number Diff line change
@@ -215,13 +215,14 @@ Long linsert(byte[] key, Client.LIST_POSITION where, byte[] pivot,


/**
* @deprecated This command has no meaning.
* @deprecated unusable command, this command will be removed in 3.0.0.
*/
@Deprecated
List<byte[]> blpop(byte[] arg);


/**
* @deprecated This command has no meaning.
* @deprecated unusable command, this command will be removed in 3.0.0.
*/
@Deprecated
List<byte[]> brpop(byte[] arg);
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
@@ -1882,15 +1882,15 @@ public List<String> brpop(String... args) {
}

/**
* @deprecated unusable command
* @deprecated unusable command, this command will be removed in 3.0.0.
*/
@Deprecated
public List<String> blpop(String arg) {
return blpop(new String[]{arg});
}

/**
* @deprecated unusable command
* @deprecated unusable command, this command will be removed in 3.0.0.
*/
@Deprecated
public List<String> brpop(String arg) {
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/JedisCommands.java
Original file line number Diff line number Diff line change
@@ -211,15 +211,15 @@ Long linsert(String key, Client.LIST_POSITION where, String pivot,
Long rpushx(String key, String... string);

/**
* @deprecated unusable command
* @deprecated unusable command, this will be removed in 3.0.0.
*/
@Deprecated
List<String> blpop(String arg);

List<String> blpop(int timeout, String key);

/**
* @deprecated unusable command
* @deprecated unusable command, this will be removed in 3.0.0.
*/
@Deprecated
List<String> brpop(String arg);

0 comments on commit cbf26df

Please sign in to comment.