Exemple #1
0
 public Task <Thrift.VoidResp> HandleCall(Thrift.SetReq message)
 {
     return(_arrWorker[SharpOTP.Remote.Ketama.GetHashCode(message.Key) % _arrWorker.Length].Set(message));
 }
Exemple #2
0
 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());
 }
Exemple #3
0
 public Task <Thrift.VoidResp> Set(Thrift.SetReq request)
 {
     return(this._server.Call <Thrift.VoidResp>(request));
 }