def METHOD_NAME(self, cache_versions):
    is_versioned = self.cache_version == cache_versions[BANS_CACHE]
    is_expired = self.expires_on and self.expires_on < timezone.now()
    return is_versioned and not is_expired