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