Class LPosCommandKt

    • 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 lposCommand(String key, StreamWithLength element, Long rank, Long count, Long maxLen, Function1<List<Long>, Unit> onResult)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • lposCommand

         final static RedisRequest lposCommand(String key, StreamWithLength element, Long rank, Long count, Long maxLen, Function1<List<Long>, Unit> onResult)
        Parameters:
        rank -
        • optional, start with the n-th match (negative values search from the tail)

        count -
        • optional, the maximum number of matches to return, 0 returns all matches. If not set, at most one match is returned

        maxLen -
        • optional, compare at most this many elements

        onResult -
        • called with the indexes of the matching elements (empty if there is no match)