java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.list.LMPOP
All Implemented Interfaces:
Resp3Command

public class LMPOP extends RespCommand implements Resp3Command
Pops one or more elements from the first non-empty list key from the list of provided key names. Elements are popped from either the left or right of the first non-empty list based on the passed argument. The number of returned elements is limited to the lower between the non-empty list's length, and the count argument (which defaults to 1). Returns array reply, specifically:
  • null when no element could be popped.
  • A two-element array with the first element being the name of the key from which elements were popped, and the second element is an array of elements.
Since:
15.0
See Also:
  • Field Details

    • COUNT

      public static final byte[] COUNT
    • LEFT

      public static final byte[] LEFT
  • Constructor Details

    • LMPOP

      public LMPOP()
  • Method Details