module Redis::Commands::Server

def monitor

Other tags:
    Yieldparam: line - timestamp and command that was executed

Other tags:
    Yield: - a block to be called for every line of output
def monitor
  synchronize do |client|
    client = client.pubsub
    client.call_v([:monitor])
    loop do
      yield client.next_event
    end
  end
end