ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/redis/ClusteredRedisCache.java
@Override
    public ClusteredRedisCache init() {
        super.init();

        /*
         * Parse custom property: redis-hosts-and-ports
         */
        String hostsAndPorts = getCacheProperty(CACHE_PROP_REDIS_HOSTS_AND_PORTS);
        if (!StringUtils.isBlank(hostsAndPorts)) {
            this.redisHostsAndPorts = hostsAndPorts;
        }

        if (getJedisConnector() == null) {
            try {
                JedisConnector jedisConnector = new JedisConnector();
                jedisConnector.setRedisHostsAndPorts(redisHostsAndPorts).init();
                setJedisConnector(jedisConnector, true);
            } catch (Exception e) {
                LOGGER.warn(e.getMessage(), e);
            }
        }

        return this;
    }
@Override
    public ClusteredRedisCache init() {
        super.init();

        /*
         * Parse custom property: redis-hosts-and-ports
         */
        String hostsAndPorts = getCacheProperty(CACHE_PROP_REDIS_HOSTS_AND_PORTS);
        if (!StringUtils.isBlank(hostsAndPorts)) {
            this.redisHostsAndPorts = hostsAndPorts;
        }

        if (getJedisConnector() == null) {
            try {
                JedisConnector jedisConnector = new JedisConnector();
                jedisConnector.setRedisHostsAndPorts(redisHostsAndPorts).init();
                setJedisConnector(jedisConnector, true);
            } catch (Exception e) {
                LOGGER.warn(e.getMessage(), e);
            }
        }

        return this;
    }
@ Override public ClusteredRedisCache init ( ) { super . init ( ) ; /*
         * Parse custom property: redis-hosts-and-ports
         */ String hostsAndPorts = getCacheProperty ( CACHE_PROP_REDIS_HOSTS_AND_PORTS ) ; if ( ! StringUtils . isBlank ( hostsAndPorts ) ) { this . redisHostsAndPorts = hostsAndPorts ; } if ( getJedisConnector ( ) == null ) { try { JedisConnector jedisConnector = new JedisConnector ( ) ; jedisConnector . setRedisHostsAndPorts ( redisHostsAndPorts ) . init ( ) ; setJedisConnector ( jedisConnector , true ) ; } catch ( Exception e ) { LOGGER . warn ( e . getMessage ( ) , e ) ; } } return this ; }
{@inheritDoc}
{