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

        /*
         * Parse custom property: redis-host-and-port
         */
        String hostAndPort = getCacheProperty(CACHE_PROP_REDIS_HOST_AND_PORT);
        if (!StringUtils.isBlank(hostAndPort)) {
            this.redisHostAndPort = hostAndPort;
        }

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

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

        /*
         * Parse custom property: redis-host-and-port
         */
        String hostAndPort = getCacheProperty(CACHE_PROP_REDIS_HOST_AND_PORT);
        if (!StringUtils.isBlank(hostAndPort)) {
            this.redisHostAndPort = hostAndPort;
        }

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

        return this;
    }
@ Override public RedisCache init ( ) { super . init ( ) ; /*
         * Parse custom property: redis-host-and-port
         */ String hostAndPort = getCacheProperty ( CACHE_PROP_REDIS_HOST_AND_PORT ) ; if ( ! StringUtils . isBlank ( hostAndPort ) ) { this . redisHostAndPort = hostAndPort ; } if ( getJedisConnector ( ) == null ) { try { JedisConnector jedisConnector = new JedisConnector ( ) ; jedisConnector . setRedisHostsAndPorts ( redisHostAndPort ) . init ( ) ; setJedisConnector ( jedisConnector , true ) ; } catch ( Exception e ) { LOGGER . warn ( e . getMessage ( ) , e ) ; } } return this ; }
{@inheritDoc}
{