module Pubsub
Methods for managing Redis Pub/Sub.
Definitions
def publish(channel, message)
Post a message to a channel. See https://redis.io/commands/publish for more details.
Signature
-
parameter
channel
String
-
parameter
message
String
Implementation
def publish(channel, message)
call("PUBLISH", channel, message)
end
def spublish(channel, message)
Post a message to a shard channel. See https://redis.io/commands/spublish for more details.
Signature
-
parameter
channel
String
-
parameter
message
String
Implementation
def spublish(channel, message)
call("SPUBLISH", channel, message)
end