Skip to content

Commit

Permalink
Deprecate methods with 'byte[] keyCount' param (#2548)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed May 18, 2021
1 parent 21343b4 commit e347ca1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/redis/clients/jedis/BinaryJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -3905,6 +3905,7 @@ protected static byte[][] getParamsWithBinary(List<byte[]> keys, List<byte[]> ar
}

@Override
@Deprecated
public Object eval(final byte[] script, final byte[] keyCount, final byte[]... params) {
checkIsInMultiOrPipeline();
client.eval(script, keyCount, params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ public Response<Object> eval(byte[] script) {
}

@Override
@Deprecated
public Response<Object> eval(byte[] script, byte[] keyCount, byte[]... params) {
getClient(script).eval(script, keyCount, params);
return getResponse(BuilderFactory.RAW_OBJECT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

public interface BinaryScriptingCommands {

/**
* @deprecated Use {@link #eval(byte..., int, byte[]...)}.
*/
@Deprecated
Object eval(byte[] script, byte[] keyCount, byte[]... params);

Object eval(byte[] script, int keyCount, byte[]... params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

public interface BinaryScriptingCommandsPipeline {

/**
* @deprecated Use {@link #eval(byte..., int, byte[]...)}.
*/
@Deprecated
Response<Object> eval(byte[] script, byte[] keyCount, byte[]... params);

Response<Object> eval(byte[] script, int keyCount, byte[]... params);
Expand Down

0 comments on commit e347ca1

Please sign in to comment.