class Redis

def pubsub(subcommand, *args)

Possible subcommands: channels, numsub, numpat.
Inspect the state of the Pub/Sub subsystem.
def pubsub(subcommand, *args)
  synchronize do |client|
    client.call([:pubsub, subcommand] + args)
  end
end