def __init__(self, server_list_cfg, client_cfg, sys_path=None):
    if (sys_path is not None):
        import sys
        sys.path.append(sys_path)
    try:
        import mc
    except ImportError:
        raise ImportError('Please install memcached to enable MemcachedBackend.')
    self.server_list_cfg = server_list_cfg
    self.client_cfg = client_cfg
    self._client = mc.MemcachedClient.GetInstance(self.server_list_cfg, self.client_cfg)
    self._mc_buffer = mc.pyvector()
def __init__(self, server_list_cfg, client_cfg, sys_path=None):
    if (sys_path is not None):
        import sys
        sys.path.append(sys_path)
    try:
        import mc
    except ImportError:
        raise ImportError('Please install memcached to enable MemcachedBackend.')
    self.server_list_cfg = server_list_cfg
    self.client_cfg = client_cfg
    self._client = mc.MemcachedClient.GetInstance(self.server_list_cfg, self.client_cfg)
    self._mc_buffer = mc.pyvector()