  We introduce Poincar\'e type inequalities based on rearrangement invariant
spaces in the setting of metric measure spaces and analyze when they imply the
doubling condition on the underline measure.
