Class ExpireCommandKt
-
- All Implemented Interfaces:
public final class ExpireCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestexpireCommand(String key, Long seconds, ExpireCondition condition, Function1<Boolean, Unit> onResult)Lets key expire after the given number of seconds. -
-
Method Detail
-
expireCommand
final static RedisRequest expireCommand(String key, Long seconds, ExpireCondition condition, Function1<Boolean, Unit> onResult)
Lets key expire after the given number of 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
-
-
-
-