implicit final class SequenceOps[Ops, Res] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SequenceOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SequenceOps(ops: Ops)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
def
toString(): String
- Definition Classes
- Any