Class LMPopCommandKt

    • 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

      • lmpopCommand

         final static RedisRequest lmpopCommand(Collection<String> keys, ListDirection direction, Long count, EntrySink<StreamWithLength> entrySink)

        Pops elements from the first non-empty list of keys.

        Parameters:
        count -
        • optional, the maximum number of elements to pop (defaults to 1)

        entrySink -
        • EntrySink.onEntry is called once per popped element with the name of the list it was popped from, then EntrySink.onComplete is called once (also when nothing was popped). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.