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
andlPushX
.
- Alphabetic
- By Inheritance
- ListCommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lGetAll(key: K): Observable[V]
Get all of elements from a list.
- 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
- 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
- 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 insertedFalse
if either the key or the pivot element were not found.
- 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 insertedFalse
if either the key or the pivot element were not found.
- 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.
- 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.
- def lPush(key: K, values: List[V]): Task[Long]
- 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
- def lRange(key: K, start: Long, stop: Long): Observable[V]
Get a range of elements from a list.
- def lRem(key: K, count: Long, value: V): Task[Long]
Remove elements from a list.
- 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.
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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.
- 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
- def rPush(key: K, values: List[V]): Task[Long]
- 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
- def rPushX(key: K, values: List[V]): Task[Long]
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()