RedisPubSub

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.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def nonMessages(cb: PubSubReply => F[Unit]): F[Unit]
def ping: F[Unit]
def psubscribe(s: String, cb: PMessage => F[Unit]): F[Unit]
def psubscriptions: F[List[String]]
def publish(channel: String, message: String): F[Int]
def punsubscribe(s: String): F[Unit]
def runMessages: F[Unit]
def subscribe(s: String, cb: Message => F[Unit]): F[Unit]
def subscriptions: F[List[String]]
def unhandledMessages(cb: PubSubMessage => F[Unit]): F[Unit]
def unsubscribe(s: String): F[Unit]
def unsubscribeAll: F[Unit]