object RedisList extends RedisList
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) use the pure
monix.connect.redis.client.RedisConnection
- Source
- RedisList.scala
- Alphabetic
- By Inheritance
- RedisList
- RedisList
- 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 blpop[K, V](timeout: Long, keys: K*)(implicit connection: StatefulRedisConnection[K, V]): Task[KeyValue[K, V]]
Remove and get the first element in a list, or block until one is available.
Remove and get the first element in a list, or block until one is available.
- returns
A null multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with the first element being the name of the key where an element was popped and the second element being the value of the popped element.
- Definition Classes
- RedisList
- def brpop[K, V](timeout: Long, keys: K*)(implicit connection: StatefulRedisConnection[K, V]): Task[KeyValue[K, V]]
Remove and get the last element in a list, or block until one is available.
Remove and get the last element in a list, or block until one is available.
- returns
A null multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with the first element being the name of the key where an element was popped and the second element being the value of the popped element.
- Definition Classes
- RedisList
- def brpoplpush[K, V](timeout: Long, source: K, destination: K)(implicit connection: StatefulRedisConnection[K, V]): Task[V]
Pop a value from a list, push it to another list and return it; or block until one is available.
Pop a value from a list, push it to another list and return it; or block until one is available.
- returns
The element being popped from source and pushed to destination.
- Definition Classes
- RedisList
- 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 lindex[K, V](key: K, index: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[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.
- Definition Classes
- RedisList
- def linsert[K, V](key: K, before: Boolean, pivot: V, value: V)(implicit connection: StatefulRedisConnection[K, 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.
- Definition Classes
- RedisList
- def llen[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): 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}.
- Definition Classes
- RedisList
- def lpop[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[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.
- Definition Classes
- RedisList
- def lpush[K, V](key: K, values: V*)(implicit connection: StatefulRedisConnection[K, 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.
- Definition Classes
- RedisList
- def lpushx[K, V](key: K, values: V*)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Prepend values to a list, only if the list exists.
Prepend values to a list, only if the list exists.
- returns
The length of the list after the push operation.
- Definition Classes
- RedisList
- def lrange[K, V](key: K, start: Long, stop: Long)(implicit connection: StatefulRedisConnection[K, V]): 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.
- Definition Classes
- RedisList
- def lrem[K, V](key: K, count: Long, value: V)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Remove elements from a list.
Remove elements from a list.
- returns
The number of removed elements.
- Definition Classes
- RedisList
- def lset[K, V](key: K, index: Long, value: V)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
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
The same inserted value
- Definition Classes
- RedisList
- def ltrim[K, V](key: K, start: Long, stop: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Trim a list to the specified range.
Trim a list to the specified range.
- returns
Simple string reply
- Definition Classes
- RedisList
- 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[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[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.
- Definition Classes
- RedisList
- def rpoplpush[K, V](source: K, destination: K)(implicit connection: StatefulRedisConnection[K, V]): Task[V]
Remove the last element in a list, append it to another list and return it.
Remove the last element in a list, append it to another list and return it.
- returns
The element being popped and pushed.
- Definition Classes
- RedisList
- def rpush[K, V](key: K, values: V*)(implicit connection: StatefulRedisConnection[K, 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.
- Definition Classes
- RedisList
- def rpushx[K, V](key: K, values: V*)(implicit connection: StatefulRedisConnection[K, 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.
- Definition Classes
- RedisList
- 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()