ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/memcached/XMemcachedCacheFactory.java
protected XMemcachedCacheFactory setMemcachedConnector(XMemcachedConnector memcachedConnector,
            boolean setMyOwnMemcachedConnector) {
        if (myOwnMemcachedConnector && this.memcachedConnector != null) {
            this.memcachedConnector.close();
        }
        this.memcachedConnector = memcachedConnector;
        myOwnMemcachedConnector = setMyOwnMemcachedConnector;
        return this;
    }
protected XMemcachedCacheFactory setMemcachedConnector(XMemcachedConnector memcachedConnector,
            boolean setMyOwnMemcachedConnector) {
        if (myOwnMemcachedConnector && this.memcachedConnector != null) {
            this.memcachedConnector.close();
        }
        this.memcachedConnector = memcachedConnector;
        myOwnMemcachedConnector = setMyOwnMemcachedConnector;
        return this;
    }
Attach a {@link XMemcachedConnector} to this cache factory.

@param memcachedConnector
@param setMyOwnMemcachedConnector
set {@link #myOwnMemcachedConnector} to {@code true} or not.
@return
@since 0.6.3.3