Skip to content

Instantly share code, notes, and snippets.

@debasishg

debasishg/Pub.scala

Created Apr 18, 2010
Embed
What would you like to do?
object Pub {
println("starting publishing service ..")
val p = new Publisher(new RedisClient("localhost", 6379))
p.start
def publish(channel: String, message: String) = {
p ! Publish(channel, message)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment