def METHOD_NAME(client, interval):
    from rez.utils.memcached import Client
    import time
    prev_entry = None
    print("%-64s %-16s %-16s %-16s %-16s %-16s"
          % ("SERVER", "CONNS", "GET/s", "SET/s", "TEST_GET", "TEST_SET"))
    while True:
        stats = dict(client.get_stats())
        entry = (time.time(), stats)
        if prev_entry:
            prev_t, prev_stats = prev_entry
            t, stats = entry
            dt = t - prev_t
            for instance, payload in stats.items():
                prev_payload = prev_stats.get(instance)
                if payload and prev_payload:
                    # stats
                    gets = int(payload["cmd_get"]) - int(prev_payload["cmd_get"])
                    sets = int(payload["cmd_set"]) - int(prev_payload["cmd_set"])
                    gets_per_sec = gets / dt
                    sets_per_sec = sets / dt
                    # test get/set
                    uri = instance.split()[0]
                    client = Client([uri], debug=True)
                    t1 = time.time()
                    client.set("__TEST__", 1)
                    t2 = time.time()
                    test_set = t2 - t1
                    client.get("__TEST__")
                    test_get = time.time() - t2
                    nconns = int(payload["curr_connections"])
                    print("%-64s %-16d %-16g %-16g %-16g %-16g"
                          % (instance, nconns, gets_per_sec, sets_per_sec,
                             test_get, test_set))
        prev_entry = entry
        time.sleep(interval)