def METHOD_NAME(cls, cache_key, project_ids, organization_id, order_by, value_list):
    cache_result = cache.get(cache_key)
    if cache_result is None:
        result = list(
            cls.objects.filter(
                project_id__in=project_ids,
                organization_id=organization_id,
            )
            .order_by(*order_by)
            .values_list(*value_list)
        )
        cache.set(cache_key, result, PROJECT_TRANSACTION_THRESHOLD_CACHE_TTL)
        return result
    else:
        return cache_result