Define the format of the messages sent by Memcached Client.

This commit is contained in:
yuanwei 2014-07-23 07:59:38 +08:00
parent 91d35b80cf
commit b719c8d719
1 changed files with 42 additions and 0 deletions

42
protobuf/requestMsg.proto Normal file
View File

@ -0,0 +1,42 @@
option java_package = "messageBody";//°üÃû
option java_outer_classname="requestMsg"; //ˈ̟
// Á¬½Ómemcached server
message nr_Connected_mem
{
}
message nr_Connected_mem_back
{
optional int32 memID=1;
}
message nr_Read
{
optional string key=1;
optional int32 clientid=2;
optional int64 time=3;
}
message nr_Read_res
{
optional string key=1;
optional string value=2;
optional int64 time=3;
}
message nr_write
{
optional string key=1;
optional string value=2;
optional int64 time=3;
}
message nr_write_res
{
optional string key=1;
optional string value=2;
optional int64 time=3;
}