private static RedisConfiguration getStandaloneConfig(final BaseRedisProperties redis) {
        if (StringUtils.hasText(redis.getUri())) {
            LOGGER.debug("Setting Redis standalone configuration based on URI");
            return LettuceConnectionFactory.createRedisConfiguration(redis.getUri());
        }
        LOGGER.debug("Setting Redis standalone configuration on host [{}] and port [{}]", redis.getHost(), redis.getPort());
        val standaloneConfig = new RedisStandaloneConfiguration(redis.getHost(), redis.getPort());
        standaloneConfig.setDatabase(redis.getDatabase());
        if (StringUtils.hasText(redis.getPassword())) {
            standaloneConfig.setUsername(redis.getUsername());
            standaloneConfig.setPassword(RedisPassword.of(redis.getPassword()));
        }
        return standaloneConfig;
    }
New client options.

@param redis         the redis
@param casSslContext the cas ssl context
@return the client options
@throws Exception the exception
support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java