Class ZPopCommandKt

    • 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

      • zpopmaxCommand

         final static RedisRequest zpopmaxCommand(String key, Long count, ScoredElementSink<StreamWithLength> sink)

        Removes and returns the members with the highest scores.

        Parameters:
        count -
        • optional, the maximum number of members to remove. If not set, at most one member is removed

        sink -
        • called once per removed member, highest score first (none if the key does not exist). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.

      • zpopminCommand

         final static RedisRequest zpopminCommand(String key, Long count, ScoredElementSink<StreamWithLength> sink)

        Removes and returns the members with the lowest scores.

        Parameters:
        count -
        • optional, the maximum number of members to remove. If not set, at most one member is removed

        sink -
        • called once per removed member, lowest score first (none if the key does not exist). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.