摘要: 1、在.proto文件中定义消息格式 2、使用protobuf编译器 3、使用c++ api来读写消息 0、为何使用protobuf? 1、原始内存数据结构,可以以二进制方式sent/saved.这种方式需要相同的内存布局和字节序。 2、以ad-hoc方式将数据项编码成一个简单... 阅读全文
posted @ 2013-12-22 21:55 唐僧吃肉 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 摘要:set add replace get delete gets cas stats 和 flush_all 命令 获取所有key .你可以使用MemCachedClient的statsItems(),statsSlabs()组合获取key。这也就是所谓的快速keySet;但返回的k... 阅读全文
posted @ 2013-12-22 17:38 唐僧吃肉 阅读(145) 评论(0) 推荐(0) 编辑