From b719c8d719433c9ffc8eb47ec1186ff29911a3aa Mon Sep 17 00:00:00 2001 From: yuanwei Date: Wed, 23 Jul 2014 07:59:38 +0800 Subject: [PATCH] Define the format of the messages sent by Memcached Client. --- protobuf/requestMsg.proto | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 protobuf/requestMsg.proto diff --git a/protobuf/requestMsg.proto b/protobuf/requestMsg.proto new file mode 100644 index 0000000..1129beb --- /dev/null +++ b/protobuf/requestMsg.proto @@ -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; +} +