module Kiyohime::PublisherHelper
This helper can be mixed into classes which want to just simply open a Redis connection and then publish a message
Public Instance Methods
publisher()
click to toggle source
Create a redis publisher
# File lib/kiyohime/publisher_helper.rb, line 10 def publisher @redis_connection ||= Kiyohime::Stores::RedisStore.new.redis Kiyohime::Publisher.new(@redis_connection) end