Gets the setting value as an integer relative to the number of CPU.
        See :func:`ycsettings.settings.parse_n_jobs` for parsing rules.

        :rtype: int

def getnjobs(self, key, **kwargs):
        """
        Gets the setting value as an integer relative to the number of CPU.
        See :func:`ycsettings.settings.parse_n_jobs` for parsing rules.

        :rtype: int
        """

        return self.get(key, cast_func=parse_n_jobs, **kwargs)