Skip to content

Commit

Permalink
Expanded deprecated comment, fixed a misspelling of DECRBY.
Browse files Browse the repository at this point in the history
  • Loading branch information
radifalco authored and HeartSaVioR committed Nov 13, 2014
1 parent d286138 commit cbf26df
Show file tree
Hide file tree
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
Expand Up @@ -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.
Expand Down Expand Up @@ -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});
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/redis/clients/jedis/BinaryJedisCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/JedisCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cbf26df

Please sign in to comment.