Skip to content

Commit

Permalink
Remove deprecated PSETEX with int parameter
Browse files Browse the repository at this point in the history
Removes deprecated psetex(String, int, String).
  • Loading branch information
Ian O'Neill committed Mar 2, 2015
1 parent aeae551 commit 6bc3f6a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
5 changes: 0 additions & 5 deletions src/main/java/redis/clients/jedis/BinaryClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1088,11 +1088,6 @@ public void pttl(final byte[] key) {
sendCommand(PTTL, key);
}

@Deprecated
public void psetex(final byte[] key, final int milliseconds, final byte[] value) {
psetex(key, (long) milliseconds, value);
}

public void psetex(final byte[] key, final long milliseconds, final byte[] value) {
sendCommand(PSETEX, key, toByteArray(milliseconds), value);
}
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/redis/clients/jedis/BinaryJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -3090,11 +3090,6 @@ public Long pttl(final byte[] key) {
return client.getIntegerReply();
}

@Deprecated
public String psetex(final byte[] key, final int milliseconds, final byte[] value) {
return psetex(key, (long) milliseconds, value);
}

public String psetex(final byte[] key, final long milliseconds, final byte[] value) {
checkIsInMulti();
client.psetex(key, milliseconds, value);
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/redis/clients/jedis/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,6 @@ public void incrByFloat(final String key, final double increment) {
incrByFloat(SafeEncoder.encode(key), increment);
}

@Deprecated
public void psetex(final String key, final int milliseconds, final String value) {
psetex(key, (long) milliseconds, value);
}

public void psetex(final String key, final long milliseconds, final String value) {
psetex(SafeEncoder.encode(key), milliseconds, SafeEncoder.encode(value));
}
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -2900,11 +2900,6 @@ public Long pttl(final String key) {
return client.getIntegerReply();
}

@Deprecated
public String psetex(final String key, final int milliseconds, final String value) {
return psetex(key, (long) milliseconds, value);
}

public String psetex(final String key, final long milliseconds, final String value) {
checkIsInMulti();
client.psetex(key, milliseconds, value);
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/redis/clients/jedis/PipelineBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1190,16 +1190,6 @@ public Response<Double> incrByFloat(byte[] key, double increment) {
return getResponse(BuilderFactory.DOUBLE);
}

@Deprecated
public Response<String> psetex(String key, int milliseconds, String value) {
return psetex(key, (long) milliseconds, value);
}

@Deprecated
public Response<String> psetex(byte[] key, int milliseconds, byte[] value) {
return psetex(key, (long) milliseconds, value);
}

public Response<String> psetex(String key, long milliseconds, String value) {
getClient(key).psetex(key, milliseconds, value);
return getResponse(BuilderFactory.STRING);
Expand Down

0 comments on commit 6bc3f6a

Please sign in to comment.