Class ExpireAtCommandKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static RedisRequest expireatCommand(String key, Long unixTimeSeconds, ExpireCondition condition, Function1<Boolean, Unit> onResult) Lets key expire at the given unix timestamp in seconds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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