def METHOD_NAME(self, key, version=None):
    """Returns True if the key is in the cache and has not expired.
    :param key: key for item
    :param int version: key version number (default None, cache parameter)
    :return: True if key is found
    """
    try:
        return super(CustomDjangoCache, self).METHOD_NAME(  # noqa: W601
            key, version=version
        )
    except sqlite3.OperationalError:
        return False