08 2011 档案

摘要:Redis常用数据类型Redis最为常用的数据类型主要有以下五种:StringHashListSetSorted set在具体描述这几种数据类型之前,我们先通过一张图了解下Redis内部内存管理中是如何描述这些不同数据类型的:首先Redis内部使用一个redisObject对象来表示所有的key和value,redisObject最主要的信息如上图所示:type代表一个value对象具体是何种数据类型,encoding是不同数据类型在redis内部的存储方式,比如:type=string代表value存储的是一个普通字符串,那么对应的encoding可以是raw或者是int,如果是int则代表 阅读全文
posted @ 2011-08-22 14:17 inThink 阅读(283) 评论(0) 推荐(0) 编辑
摘要:I have been thinking abit recently how to manage dependencies and how to structure Zend Frameworkbased applications to make the code less coupled, more testable and lessdependent on the global scope.I don't mean to benegative but I am not too happy about the web application structure that mostar 阅读全文
posted @ 2011-08-01 11:24 inThink 阅读(1020) 评论(0) 推荐(0) 编辑