def __init__(self, host): self.dht = voldemort.StoreClient('force', [(host, 6666)]) self.cache = LRUCache(100000, 0, 0)
def __init__(self): self.HOST = "localhost" self.PORT = 9999 self.dht = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.cache = LRUCache(10000, 0, 0)