ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/memcached/XMemcachedCache.java
protected XMemcachedCache setMemcachedConnector(XMemcachedConnector memcachedConnector,
            boolean setMyOwnMemcachedConnector) {
        if (myOwnMemcachedConnector && this.memcachedConnector != null) {
            this.memcachedConnector.close();
        }
        this.memcachedConnector = memcachedConnector;
        myOwnMemcachedConnector = setMyOwnMemcachedConnector;
        return this;
    }
protected XMemcachedCache setMemcachedConnector(XMemcachedConnector memcachedConnector,
            boolean setMyOwnMemcachedConnector) {
        if (myOwnMemcachedConnector && this.memcachedConnector != null) {
            this.memcachedConnector.close();
        }
        this.memcachedConnector = memcachedConnector;
        myOwnMemcachedConnector = setMyOwnMemcachedConnector;
        return this;
    }
protected XMemcachedCache 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.

@param memcachedConnector
@param setMyOwnMemcachedConnector
set {@link #myOwnMemcachedConnector} to {@code true} or not.
@return
@since 0.6.3.3
Attach a { @link XMemcachedConnector } to this cache .