Method: Redis#pubsub

Defined in:
lib/redis.rb

#pubsub(subcommand, *args) ⇒ Object

Inspect the state of the Pub/Sub subsystem. Possible subcommands: channels, numsub, numpat.



2373
2374
2375
2376
2377
# File 'lib/redis.rb', line 2373

def pubsub(subcommand, *args)
  synchronize do |client|
    client.call([:pubsub, subcommand] + args)
  end
end