Class ExpireAtCommandKt
-
- All Implemented Interfaces:
public final class ExpireAtCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestexpireatCommand(String key, Long unixTimeSeconds, ExpireCondition condition, Function1<Boolean, Unit> onResult)Lets key expire at the given unix timestamp in seconds. -
-
Method Detail
-
expireatCommand
final static RedisRequest expireatCommand(String key, Long unixTimeSeconds, ExpireCondition condition, Function1<Boolean, Unit> onResult)
Lets key expire at the given unix timestamp in seconds. A time in the past deletes the key.
- Parameters:
condition-optional, only set the expiration if the condition is met
onResult-true if the expiration was set, false if the key does not exist or the condition was not met
-
-
-
-