redis-cli to flush output for pubsub_mode

closes #2074