摘要: 开始使用mongodb,记录一些基本操作。 1.类似sql中的count db.xiaoqu.count() xiaoqu为collection 2.在mongo shell中去重 循环处理 3.查询某个collection 4.创建collection 阅读全文
posted @ 2016-12-23 16:27 fubst0318 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. sds类型 sds为一种抽象数据结构 typedef char *sds;struct sdshdr { // buf 已占用长度int len; // buf 剩余可用长度int free; // 实际保存字符串数据的地方char buf[];}; 2.sds的基本api 3. 双端链表 其 阅读全文
posted @ 2016-12-23 16:26 fubst0318 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1.HTTP报文常见格式 请求电文中的方法包括:GET/HEAD/PUT/POST/TRACE/OPTIONS/DELETE 阅读全文
posted @ 2016-12-23 11:11 fubst0318 阅读(74) 评论(0) 推荐(0) 编辑