Class IncrExCommandKt

    • 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
    • Constructor Detail

    • Method Detail

      • increxCommand

         final static RedisRequest increxCommand(String key, IncrExBy by, Boolean saturate, IncrExExpiration expiration, Boolean enx, Function1<IncrExResult, Unit> onResult)
        Parameters:
        by -
        • optional increment mode and bounds; increments by 1 (integer) if null

        saturate -
        • if true, clamp to the bound instead of skipping the increment

        expiration -
        • optional, sets or removes the expiration of the key

        enx -
        • if true, only set the expiration if the key has none (ENX)