object RedisBatch extends HasFlatMap[RedisBatch]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RedisBatch
- HasFlatMap
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def failure(cause: Throwable): RedisBatch[Nothing]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
implicit
def
flatMapOps[A](left: RedisBatch[A]): FlatMapOps[RedisBatch[A], A]
- Definition Classes
- HasFlatMap
- def foldLeft[T, A](ops: TraversableOnce[RedisBatch[A]], zero: T)(fun: (T, A) ⇒ T): RedisBatch[T]
- def foldLeftMap[A, B, T](coll: TraversableOnce[A], zero: T)(opFun: (A) ⇒ RedisBatch[B])(fun: (T, B) ⇒ T): RedisBatch[T]
- def foreach[A](ops: TraversableOnce[A])(opFun: (A) ⇒ RedisBatch[Any]): RedisBatch[Unit]
- def fromTry[T](t: commons.Try[T]): RedisBatch[T]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
sequence[Ops, Res](ops: Ops)(implicit sequencer: Sequencer[Ops, Res]): RedisBatch[Res]
Merges multiple RedisBatches into one.
Merges multiple RedisBatches into one. This is similar to Scala's
Future.sequence
but more general, because the left-hand-side (Ops
) can be more than just a collection. It can be any type for which an instance of Sequencer type-function is defined. This includes all standard Scala collections and tuples. See Sequencer for more details.Example usage:
import RedisApi.Batches.StringTyped._ // tuple of batches -> single batch of a tuple val tupleBatch: RedisBatch[(Opt[String],Long)] = RedisBatch.sequence(get("key1"), incr("key2")) // collection of batches -> single batch of a collection val seqBatch: RedisBatch[Seq[Opt[String]]] = RedisBatch.sequence((1 to 10).map(i => get(s"key$$i"))) // collection of tuples of batches -> single batch of collection of tuples val tupleCollectionBatch: RedisBatch[Seq[(Opt[String], Long)]] = RedisBatch.sequence((1 to 10).map(i => (get(s"stringKey$$i"), incr(s"numberKey$$i"))))
- def success[A](a: A): RedisBatch[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def traverse[M[X] <: TraversableOnce[X], A, B, That](coll: M[A])(opFun: (A) ⇒ RedisBatch[B])(implicit cbf: CanBuildFrom[M[A], B, That]): RedisBatch[That]
- final val unit: RedisBatch[Unit]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Index