Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @param <T> the type of the subclass extending this base class
*/
class BaseSetExParams<T extends BaseSetExParams> implements IParams {
class BaseSetExParams<T extends BaseSetExParams<T>> implements IParams {

private Keyword expiration;
private Long expirationValue;
Expand Down
60 changes: 60 additions & 0 deletions src/main/java/redis/clients/jedis/params/SetParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,66 @@ public SetParams xx() {
return this;
}

/**
* Set the specified expire time, in seconds.
* @param remainingSeconds
* @return SetParams
*/
@Override
public SetParams ex(long remainingSeconds) {
return super.ex(remainingSeconds);
}

/**
* Set the specified expire time, in milliseconds.
* @param remainingMilliseconds
* @return SetParams
*/
@Override
public SetParams px(long remainingMilliseconds) {
return super.px(remainingMilliseconds);
}

/**
* Set the specified Unix time at which the key will expire, in seconds.
* @param timestampSeconds
* @return SetParams
*/
@Override
public SetParams exAt(long timestampSeconds) {
return super.exAt(timestampSeconds);
}

/**
* Set the specified Unix time at which the key will expire, in milliseconds.
* @param timestampMilliseconds
* @return SetParams
*/
@Override
public SetParams pxAt(long timestampMilliseconds) {
return super.pxAt(timestampMilliseconds);
}

/**
* Retain the time to live associated with the key.
*
* @deprecated Since 6.1.0 use {@link #keepTtl()} instead.
* @return SetParams
*/
@Override
public SetParams keepttl() {
return keepTtl();
}

/**
* Retain the time to live associated with the key.
* @return SetParams
*/
@Override
public SetParams keepTtl() {
return super.keepTtl();
}

@Override
public void addParams(CommandArguments args) {
if (existance != null) {
Expand Down
Loading