工作中有用到redis,翻完《redis设计与实现》的大部分章节,对redis有一定了解了。对于我这种编程菜鸟,redis源码是极好值得一看的,学习下代码风格,程序设计等。看源码了解细节,帮助优化程序。按照侯老师的说法:源码面前,了无秘密。
redis官网上有句很经典的话如下:
Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as adata structure serversince keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.
学习redis,我们可以从以下几个方面入手:
- 适用场景、优缺点
- 实践
- 源码
适用场景、优缺点
对比memcache
实践
实际适用经验[待补充]
源码
具体分析下源代码的各个模块
各种自定义的数据结构
redisServer启动的整个流程
网络编程,select
Ref:
redis参考资料搜集:https://github.com/springside/springside4/wiki/redis