public Duration getMaxWait() {
        return Optional.ofNullable(maxWait)
                .map(it -> Duration.ofMillis(maxWait)).orElse(Duration.ofMillis(-1));
    }
Gets max wait.

@return the max wait
shenyu-plugin/shenyu-plugin-cache/shenyu-plugin-cache-redis/src/main/java/org/apache/shenyu/plugin/cache/redis/RedisConfigProperties.java