Packages

implicit final class SequenceOps[Ops, Res] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SequenceOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SequenceOps(ops: Ops)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def sequence(implicit sequencer: Sequencer[Ops, Res]): RedisBatch[Res]

    Merges multiple RedisBatches into one.

    Merges multiple RedisBatches into one. Alternative syntax for RedisBatch.sequence. See Sequencer for more general description of sequencing.

    Example usage:

    import RedisApi.Batches.StringTyped._
    
    // tuple of batches -> single batch of a tuple
    val tupleBatch: RedisBatch[(Opt[String],Long)] =
      (get("key1"), incr("key2")).sequence
    
    // collection of batches -> single batch of a collection
    val seqBatch: RedisBatch[Seq[Opt[String]]] =
      (1 to 10).map(i => get(s"key$$i")).sequence
    
    // collection of tuples of batches -> single batch of collection of tuples
    val tupleCollectionBatch: RedisBatch[Seq[(Opt[String], Long)]] =
      (1 to 10).map(i => (get(s"stringKey$$i"), incr(s"numberKey$$i"))).sequence
  8. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped