Accept long parameter for pexpire

This commit is contained in:
Aniket Schneider
2014-03-04 18:14:41 -05:00
parent 4e78b811be
commit e7285ade5c
6 changed files with 40 additions and 3 deletions

View File

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