class ActiveOrm::Redis::PubSub

Public Class Methods

match_subscribe(*channels, &block) click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 22
def match_subscribe(*channels, &block)
  client.psubscribe(channels, &block)
end
match_unsubscribe(*channels) click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 26
def match_unsubscribe(*channels)
  client.punsubscribe(channels)
end
publish(channel, message) click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 6
def publish(channel, message)
  client.publish(channel, message)
end
state(command, *args) click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 30
def state(command, *args)
  client.pubsub(command, args)
end
subscribe(*channels, &block) click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 14
def subscribe(*channels, &block)
  client.subscribe(channels, &block)
end
subscribed?() click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 10
def subscribed?
  client.subscribed?
end
unsubscribe(*channels) click to toggle source
# File lib/active_orm/redis/pub_sub.rb, line 18
def unsubscribe(*channels)
  client.unsubscribe(channels)
end