Get a value out of the cache

        Returns CACHE_DISABLED if the cache is disabled

        :param key: key to search for
        :param default: value to return if the key is not found (defaults to CACHE_MISS)

def get(self, key, default=CACHE_MISS):
        """
        Get a value out of the cache

        Returns CACHE_DISABLED if the cache is disabled

        :param key: key to search for
        :param default: value to return if the key is not found (defaults to CACHE_MISS)
        """
        if not self.options.enabled:
            return CACHE_DISABLED
        ret = default
        if self.has(key):
            ret = self._dict[key].value
        logger.debug('get({}, default={}) == {}'.format(repr(key), repr(default), repr(ret)))
        return ret