Class SScanCommandKt

    • 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

      • sscanCommand

         final static RedisRequest sscanCommand(String key, String cursor, StreamWithLength match, Long count, Function1<String, Unit> onCursor, ElementSink<StreamWithLength> sink)
        Parameters:
        cursor -
        • "0" to start a new iteration, otherwise the cursor returned by the previous call

        match -
        • optional, only return members matching this glob-style pattern

        count -
        • optional, hint for how many members to return per call

        onCursor -
        • called with the cursor to use for the next call ("0" when the iteration is complete). Called before any member is passed to the sink.

        sink -
        • called once per returned member. The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.