Module: Kiyohime::PublisherHelper

Defined in:
lib/kiyohime/publisher_helper.rb

Overview

This helper can be mixed into classes which want to just simply open a Redis connection and then publish a message

Instance Method Summary collapse

Instance Method Details

#publisherObject

Create a redis publisher



10
11
12
13
# File 'lib/kiyohime/publisher_helper.rb', line 10

def publisher
  @redis_connection ||= Kiyohime::Stores::RedisStore.new.redis
  Kiyohime::Publisher.new(@redis_connection)
end