Sha256: e8bc086ccf0e2be83ce07a76ef9af64d54b170fed082cfc97a1951196698a517

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2020-2023, by Samuel Williams.

module Protocol
	module Redis
		module Methods
			module Pubsub
				# Post a message to a channel.
				# @see https://redis.io/commands/publish
				# @param channel [String]
				# @param message [String]
				def publish(channel, message)
					call('PUBLISH', channel, message)
				end
			end
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
protocol-redis-0.9.0 lib/protocol/redis/methods/pubsub.rb
protocol-redis-0.8.1 lib/protocol/redis/methods/pubsub.rb
protocol-redis-0.8.0 lib/protocol/redis/methods/pubsub.rb
protocol-redis-0.7.0 lib/protocol/redis/methods/pubsub.rb