<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has(self, key):
 """ See if a key is in the cache Returns CACHE_DISABLED if the cache is disabled :param key: key to search for """

        if not self.options.enabled:
            return CACHE_DISABLED
        ret = key in self._dict.keys() and not self._dict[key].is_expired()
        logger.debug('has({}) == {}'.format(repr(key), ret))
        return ret