示例#1
0
    def get_client(self):
        url = '%s:%s' % (cfg['host'], cfg['port'])
        raw_client = pylibmc.Client([url])
        raw_client.flush_all()

        client = TracedClient(raw_client, tracer=self.tracer, service=self.TEST_SERVICE)
        return client, self.tracer
示例#2
0
    def get_client(self):
        url = "%s:%s" % (cfg["host"], cfg["port"])
        raw_client = pylibmc.Client([url])
        raw_client.flush_all()

        client = TracedClient(raw_client,
                              tracer=self.tracer,
                              service=self.TEST_SERVICE)
        return client, self.tracer