LREM

    • count > 0: Remove elements equal to element moving from head to tail.
    • count < 0: Remove elements equal to element moving from tail to head.
    • count = 0: Remove all elements equal to .
    1. (integer) 1
    2. dragonfly> RPUSH mylist "hello"
    3. dragonfly> RPUSH mylist "foo"
    4. (integer) 3
    5. dragonfly> RPUSH mylist "hello"
    6. dragonfly> LREM mylist -2 "hello"
    7. (integer) 2
    8. dragonfly> LRANGE mylist 0 -1
    9. 1) "hello"