(servers,mem_lib="default",dead_retry=_DEAD_RETRY,**kw)
memcached connect
    @param servers: (list) memcached的地址，例如["127.0.0.1:11211","127.0.0.1:11222",]
    @param mem_lib: 选择性的使用memcached库,默认的使用python-memcached
    {'python-memcached':"memcache","python-ultramemcache":"ultramemcache","default":"memcache"}
memcached connect
memcached connect
def memcached_connect(servers,mem_lib="default",dead_retry=_DEAD_RETRY,**kw):
    """
    memcached connect
    @param servers: (list) memcached的地址，例如["127.0.0.1:11211","127.0.0.1:11222",]
    @param mem_lib: 选择性的使用memcached库,默认的使用python-memcached
    {'python-memcached':"memcache","python-ultramemcache":"ultramemcache","default":"memcache"}
    """
    global mclient
    memcache = __import__(MEMCS.get(mem_lib))
    mclient = memcache.Client(servers,dead_retry=dead_retry,**kw)
    server,key = mclient._get_server("ping")
    if not server or not key:
        raise MemConnError()
def memcached_connect ( servers , mem_lib = "default" , dead_retry = _DEAD_RETRY , * * kw ) : global mclient memcache = __import__ ( MEMCS . get ( mem_lib ) ) mclient = memcache . Client ( servers , dead_retry = dead_retry , * * kw ) server , key = mclient . _get_server ( "ping" ) if not server or not key : raise MemConnError ( )