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;
    }
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
Attach a { @link XMemcachedConnector } to this cache factory .