Allows to set a default cache class.