Object/Trait

com.avsystem.commons.redis

RedisBatch

Related Docs: trait RedisBatch | package redis

Permalink

object RedisBatch extends HasFlatMap[RedisBatch]

Linear Supertypes
HasFlatMap[RedisBatch], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedisBatch
  2. HasFlatMap
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class Index extends AnyRef

    Permalink
  2. implicit final class SequenceOps[Ops, Res] extends AnyVal

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Index

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def failure(cause: Throwable): RedisBatch[Nothing]

    Permalink
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. implicit def flatMapOps[A](left: RedisBatch[A]): FlatMapOps[RedisBatch[A], A]

    Permalink
    Definition Classes
    HasFlatMap
  12. def foldLeft[T, A](ops: TraversableOnce[RedisBatch[A]], zero: T)(fun: (T, A) ⇒ T): RedisBatch[T]

    Permalink
  13. def foldLeftMap[A, B, T](coll: TraversableOnce[A], zero: T)(opFun: (A) ⇒ RedisBatch[B])(fun: (T, B) ⇒ T): RedisBatch[T]

    Permalink
  14. def foreach[A](ops: TraversableOnce[A])(opFun: (A) ⇒ RedisBatch[Any]): RedisBatch[Unit]

    Permalink
  15. def fromTry[T](t: commons.Try[T]): RedisBatch[T]

    Permalink
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def sequence[Ops, Res](ops: Ops)(implicit sequencer: Sequencer[Ops, Res]): RedisBatch[Res]

    Permalink

    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"))))
  23. def success[A](a: A): RedisBatch[A]

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. 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]

    Permalink
  27. val unit: RedisBatch[Unit]

    Permalink
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HasFlatMap[RedisBatch]

Inherited from AnyRef

Inherited from Any

Ungrouped