Sha256: 2deed165db18e4521e3cbe7e3e1371b81b8633350bd81f6ee6166c5c311faaaa
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
require "redis" require "json" module Juggernaut def redis @redis ||= Redis.new end def redis=(val) @redis = val end def publish(channels, data) message = {:channels => Array(channels), :data => data} redis.publish(:juggernaut, message.to_json) end extend self end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
juggernaut-2.0.0.beta1 | lib/juggernaut.rb |