private void setQueryLimitAndOffset()

in persistence-commons/persistence-commons-redis/src/main/java/org/kie/kogito/persistence/redis/RedisQuery.java [109:121]


    private void setQueryLimitAndOffset(io.redisearch.Query query) {
        if (limit != null && offset == null) {
            LOGGER.warn("Limit was specified in Redis query but not the offset. Limit is ignored.");
            return;
        }
        if (limit == null && offset != null) {
            LOGGER.warn("Offset was specified in Redis query but not the limit. Offset is ignored.");
            return;
        }
        if (limit != null && offset != null) {
            query.limit(offset, limit);
        }
    }