public Task <Thrift.VoidResp> HandleCall(Thrift.SetReq message) { return(_arrWorker[SharpOTP.Remote.Ketama.GetHashCode(message.Key) % _arrWorker.Length].Set(message)); }
public async Task <Thrift.VoidResp> HandleCall(Thrift.SetReq message) { //Console.WriteLine("set a key:" + message.Key + " value:" + message.Value); this._dic[message.Key] = message.Value; return(new Thrift.VoidResp()); }
public Task <Thrift.VoidResp> Set(Thrift.SetReq request) { return(this._server.Call <Thrift.VoidResp>(request)); }