In this paper we study categorical compactness with respect to a class of objects F being motiveated by examples arising from modules, abelian groups, and various classes of non-abelian groups. This theory is then applied to the category of not necessarily associative rings. In particular, we study the example arising from the class of all torsion-free rings. This work extends some recent results of B. J. Gardner for associative rings and radical classes.