private boolean isRedisClusteringEnabled(final BaseRedisProperties redis) {
        return (redis.getSentinel() != null && StringUtils.hasText(redis.getSentinel().getMaster()))
            || (redis.getCluster() != null && !redis.getCluster().getNodes().isEmpty());
    }
New redis connection factory.

@param redis         the redis
@param initialize    the initialize
@param casSslContext the cas ssl context
@return the redis connection factory
support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java