Merge pull request #576 from aniketschneider/pexpire-long-with-deprecation

Accept long parameter for pexpire
This commit is contained in:
Marcos Nils
2014-05-25 21:12:33 +03:00
6 changed files with 40 additions and 3 deletions

View File

@@ -1095,7 +1095,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));
}