ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/redis/BaseRedisCacheFactory.java
protected BaseRedisCacheFactory setJedisConnector(JedisConnector jedisConnector,
            boolean setMyOwnRedis) {
        if (myOwnRedis && this.jedisConnector != null) {
            this.jedisConnector.close();
        }
        this.jedisConnector = jedisConnector;
        myOwnRedis = setMyOwnRedis;
        return this;
    }
protected BaseRedisCacheFactory setJedisConnector(JedisConnector jedisConnector,
            boolean setMyOwnRedis) {
        if (myOwnRedis && this.jedisConnector != null) {
            this.jedisConnector.close();
        }
        this.jedisConnector = jedisConnector;
        myOwnRedis = setMyOwnRedis;
        return this;
    }
Attach a {@link JedisConnector} to this cache.

@param jedisConnector
@param setMyOwnRedis
set {@link #myOwnRedis} to {@code true} or not.
@return
@since 0.6.3.3