Accept long parameter for pexpire
This commit is contained in:
@@ -1091,7 +1091,12 @@ public class BinaryClient extends Connection {
|
||||
sendCommand(RESTORE, key, toByteArray(ttl), serializedValue);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void pexpire(final byte[] key, final int milliseconds) {
|
||||
pexpire(key, (long) milliseconds);
|
||||
}
|
||||
|
||||
public void pexpire(final byte[] key, final long milliseconds) {
|
||||
sendCommand(PEXPIRE, key, toByteArray(milliseconds));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user