Method: Redis::Commands::Pubsub#publish

Defined in:
lib/redis/commands/pubsub.rb

#publish(channel, message) ⇒ Object

Post a message to a channel.

[View source] [View on GitHub]

7
8
9
# File 'lib/redis/commands/pubsub.rb', line 7

def publish(channel, message)
  send_command([:publish, channel, message])
end