-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Description
io.lettuce.core
supports EXAT / PXAT
operation on SetArgs
after version 6.1.0.RELEASE
@see LETTUCE_CORE_REFERENCE
Simply, it could be added like this...
// on Expiration
private class ExpirationAt extends Expiration {
public static ExpirationAt from(long expirationAt, TimeUnit timeUnit) {
return new ExpirationAt(expirationAt, timeUnit)
}
public boolean isExpirationAt() {
return true;
}
}
// on LettuceConverters toSetArgs method
...
if (expiration.isExpirationAt()) {
switch (expiration.getTimeUnit()) {
case SECONDS:
args.exAt(expiration.getExpirationTime());
break;
default:
args.pxAt(expiration.getExpirationTime());
}
}
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged