'check if cache has a value for the corresponding key
:param key:
the key that the value has been stored under'

def has(self, key):

    if (key is None):
        raise ValueError('key    cannot    be    None')
    return ((key in self._objects) and (self._objects[key] is not _invalid_object))
