RedisPubSub

io.chrisdavenport.rediculous.RedisPubSub
See theRedisPubSub companion object
trait RedisPubSub[F[_]]

A RedisPubSub Represent an connection or group of connections communicating to the pubsub subsystem of Redis.

Only one caller should be responsible for runMessages, but delegation of how to handle errors and what to do when the connection closes or what state it closes is left to the user so they can determine what to do.

Subscription commands are run synchronous to matching subscriptions. If your operations need to take a long time please delegate them into a queue for handling without holding up other messages being processed.

Attributes

Companion
object
Source
RedisPubSub.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def nonMessages(cb: PubSubReply => F[Unit]): F[Unit]

Attributes

Source
RedisPubSub.scala
def ping: F[Unit]

Attributes

Source
RedisPubSub.scala
def psubscribe(s: String, cb: PMessage => F[Unit]): F[Unit]

Attributes

Source
RedisPubSub.scala
def psubscriptions: F[List[String]]

Attributes

Source
RedisPubSub.scala
def publish(channel: String, message: String): F[Int]

Attributes

Source
RedisPubSub.scala
def punsubscribe(s: String): F[Unit]

Attributes

Source
RedisPubSub.scala
def runMessages: F[Unit]

Attributes

Source
RedisPubSub.scala
def subscribe(s: String, cb: Message => F[Unit]): F[Unit]

Attributes

Source
RedisPubSub.scala
def subscriptions: F[List[String]]

Attributes

Source
RedisPubSub.scala
def unhandledMessages(cb: PubSubMessage => F[Unit]): F[Unit]

Attributes

Source
RedisPubSub.scala
def unsubscribe(s: String): F[Unit]

Attributes

Source
RedisPubSub.scala
def unsubscribeAll: F[Unit]

Attributes

Source
RedisPubSub.scala