trait RedisStream extends AnyRef
The Stream is a new data type introduced recently, wwhich models a log data structure in a more abstract way, like a log file often implemented as a file open in apend only mode, Redis streams are primarily an append only data structure. At least conceptually, because being Redis streams an abstract data type represented in memory, they implement more powerful opperations, to overcome the limits of the log file itself. Check the official documentation to see the available operations at: https://redis.io/commands#stream
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) use the pure
monix.connect.redis.client.RedisConnection
- Source
- RedisStream.scala
- See also
The reference to lettuce api: io.lettuce.core.api.reactive.RedisStreamReactiveCommands
- Alphabetic
- By Inheritance
- RedisStream
- 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 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
- 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()
- 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()
- def xack[K, V](key: K, group: K, messageIds: String*)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Acknowledge one or more messages as processed.
Acknowledge one or more messages as processed.
- returns
simple-reply the lenght of acknowledged messages.
- def xadd[K, V](key: K, body: Map[K, V])(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Append a message to the stream key.
Append a message to the stream key.
- returns
simple-reply the message Id.
- def xclaim[K, V](key: K, consumer: Consumer[K], minIdleTime: Long, messageIds: String*)(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Gets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.
Gets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.
- returns
simple-reply the { @link StreamMessage}
- def xdel[K, V](key: K, messageIds: String*)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Removes the specified entries from the stream.
Removes the specified entries from the stream. Returns the number of items deleted, that may be different from the number of IDs passed in case certain IDs do not exist.
- returns
simple-reply number of removed entries.
- def xgroupCreate[K, V](streamOffset: StreamOffset[K], group: K)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Create a consumer group.
Create a consumer group.
- returns
simple-reply { @literal true} if successful.
- def xgroupDelconsumer[K, V](key: K, consumer: Consumer[K])(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Delete a consumer from a consumer group.
Delete a consumer from a consumer group.
- returns
simple-reply { @literal true} if successful.
- def xgroupDestroy[K, V](key: K, group: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Boolean]
Destroy a consumer group.
Destroy a consumer group.
- returns
simple-reply { @literal true} if successful.
- def xgroupSetid[K, V](streamOffset: StreamOffset[K], group: K)(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Set the current group id.
Set the current group id.
- returns
simple-reply OK
- def xlen[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Get the length of a steam.
Get the length of a steam.
- returns
simple-reply the lenght of the stream.
- def xpending[K, V](key: K, consumer: Consumer[K], range: Range[String], limit: Limit)(implicit connection: StatefulRedisConnection[K, V]): Observable[Any]
Read pending messages from a stream within a specific Range.
Read pending messages from a stream within a specific Range.
- returns
List<Object> array-reply list with members of the resulting stream.
- def xpending[K, V](key: K, group: K, range: Range[String], limit: Limit)(implicit connection: StatefulRedisConnection[K, V]): Observable[Any]
Read pending messages from a stream within a specific Range.
Read pending messages from a stream within a specific Range.
- returns
List<Object> array-reply list with members of the resulting stream.
- def xpending[K, V](key: K, group: K)(implicit connection: StatefulRedisConnection[K, V]): Observable[Any]
Read pending messages from a stream for a group.
Read pending messages from a stream for a group.
- returns
List<Object> array-reply list pending entries.
- def xrange[K, V](key: K, range: Range[String], limit: Limit)(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Read messages from a stream within a specific Range applying a Limit.
Read messages from a stream within a specific Range applying a Limit.
- returns
Members of the resulting stream.
- def xrange[K, V](key: K, range: Range[String])(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Read messages from a stream within a specific Range.
Read messages from a stream within a specific Range.
- returns
Members of the resulting stream.
- def xread[K, V](streams: StreamOffset[K]*)(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Read messages from one or more StreamOffsets.
Read messages from one or more StreamOffsets.
- returns
Members of the resulting stream.
- def xreadgroup[K, V](consumer: Consumer[K], streams: StreamOffset[K]*)(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Read messages from one or more StreamOffsets using a consumer group.
Read messages from one or more StreamOffsets using a consumer group.
- returns
List<StreamMessage> array-reply list with members of the resulting stream.
- def xrevrange[K, V](key: K, range: Range[String], limit: Limit)(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Read messages from a stream within a specific Range applying a Limit in reverse order.
Read messages from a stream within a specific Range applying a Limit in reverse order.
- returns
Meembers of the resulting stream.
- def xrevrange[K, V](key: K, range: Range[String])(implicit connection: StatefulRedisConnection[K, V]): Observable[StreamMessage[K, V]]
Read messages from a stream within a specific Range in reverse order.
Read messages from a stream within a specific Range in reverse order.
- returns
Members of the resulting stream.
- def xtrim[K, V](key: K, approximateTrimming: Boolean, count: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Trims the stream to count elements.
Trims the stream to count elements.
- returns
Number of removed entries.
- def xtrim[K, V](key: K, count: Long)(implicit connection: StatefulRedisConnection[K, V]): Task[Long]
Trims the stream to count elements.
Trims the stream to count elements.
- returns
Number of removed entries.