Sha256: fa6856ccd30cb9a447fd8b9cf16d37214b4a484ad843560a8e81afd785e960d6
Contents?: true
Size: 332 Bytes
Versions: 1
Compression:
Stored size: 332 Bytes
Contents
require "redis" require "json" module Juggernaut def redis @redis ||= Redis.new end def redis=(val) @redis = val end def publish(channels, data, options = {}) message = ({:channels => Array(channels), :data => data}).merge(options) 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.beta2 | lib/juggernaut.rb |