Packages

class ListCommands[K, V] extends AnyRef

Exposes the set of redis list commands available.

Source
ListCommands.scala
See also

List commands reference. Does not support bLPop, bRPop, bRPopLPush and lPushX.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ListCommands
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def lGetAll(key: K): Observable[V]

    Get all of elements from a list.

  13. def lIndex(key: K, index: Long): Task[Option[V]]

    Get an element from a list by its index.

    Get an element from a list by its index.

    returns

    The requested element, or null when index is out of range.

    See also

    LINDEX.

  14. def lInsert(key: K, before: Boolean, pivot: V, value: V): Task[Long]

    Insert an element before or after another element in a list.

    Insert an element before or after another element in a list.

    returns

    The length of the list after the insert operation, or -1 when the value pivot was not found.

    See also

    LINSERT.

  15. def lInsertAfter(key: K, pivot: V, value: V): Task[Boolean]

    Insert an element after the pivot element in the list.

    Insert an element after the pivot element in the list.

    returns

    True if the element was successfully inserted False if either the key or the pivot element were not found.

  16. def lInsertBefore(key: K, pivot: V, value: V): Task[Boolean]

    Insert an element before the pivot element in the list.

    Insert an element before the pivot element in the list.

    returns

    True if the element was successfully inserted False if either the key or the pivot element were not found.

  17. def lLen(key: K): Task[Long]

    Get the length of a list.

    Get the length of a list.

    returns

    Long integer-reply the length of the list at { @code key}.

    See also

    LLEN.

  18. def lPop(key: K): Task[Option[V]]

    Remove and get the first element in a list.

    Remove and get the first element in a list.

    returns

    The value of the first element, or null when key does not exist.

    See also

    LPOP.

  19. def lPush(key: K, values: List[V]): Task[Long]
  20. def lPush(key: K, values: V*): Task[Long]

    Prepend one or multiple values to a list.

    Prepend one or multiple values to a list.

    returns

    The length of the list after the push operations.

    See also

    LPUSH.

  21. def lRange(key: K, start: Long, stop: Long): Observable[V]

    Get a range of elements from a list.

    Get a range of elements from a list.

    returns

    List of elements in the specified range.

    See also

    LRANGE.

  22. def lRem(key: K, count: Long, value: V): Task[Long]

    Remove elements from a list.

    Remove elements from a list.

    returns

    The number of removed elements.

    See also

    LREM.

  23. def lSet(key: K, index: Long, value: V): Task[Boolean]

    Set the value of an element in a list by its index.

    Set the value of an element in a list by its index.

    returns

    true if the element was inserted correctly, false if the key did not exited or the index was out of range, and a failed Task on unexpected issue.

    See also

    LSET.

  24. def lTrim(key: K, start: Long, stop: Long): Task[Unit]

    Trim a list to the specified range.

    Trim a list to the specified range.

    See also

    LTRIM.

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def rPop(key: K): Task[Option[V]]

    Remove and get the last element in a list.

    Remove and get the last element in a list.

    returns

    The value of the last element, or null when key does not exist.

    See also

    RPOP.

  29. def rPopLPush(source: K, destination: K): Task[Option[V]]

    Remove the last element in a list, prepend it to another list and return it.

    Remove the last element in a list, prepend it to another list and return it.

    returns

    The element being popped and pushed.

    See also

    RPOPLPUSH.

  30. def rPush(key: K, values: List[V]): Task[Long]
  31. def rPush(key: K, values: V*): Task[Long]

    Append one or multiple values to a list.

    Append one or multiple values to a list.

    returns

    The length of the list after the push operation.

    See also

    RPUSH.

  32. def rPushX(key: K, values: List[V]): Task[Long]
  33. def rPushX(key: K, values: V*): Task[Long]

    Append values to a list, only if the list exists.

    Append values to a list, only if the list exists.

    returns

    The length of the list after the push operation.

    See also

    RPUSHX.

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped