Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (14 sloc) 0.334 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require "rubygems"
require "bundler"

Bundler.require(:default)

# trigger a message with redis-cli
# publish channel message
# ex: publish general-notif hello
redis = Redis.new
puts "Created"
redis.subscribe "general-notif" do |on|
  puts "Subscribed"
  on.message do |channel,msg|
    puts "Received #{msg} on #{channel}"
  end
end
Something went wrong with that request. Please try again.