debasishg / scala-redis-nb

Implementation of a non blocking Redis client in Scala using Akka IO
204 stars 38 forks source link

PubSub support #13

Open awrank opened 10 years ago

awrank commented 10 years ago

PubSub functionality on top of Akka Actors. (This means separate RedisClient will be used for Subscriber).

For consumer register separate custom actor that will receive messages.

something like this (new trait that client will extend, simplified):

trait PubSub { def subscribe(channels: String*, listener: ActorRef): Future def publish(channel: String, msg: Any): Future }

Tolsi commented 7 years ago

+1