1. 下载安装
$ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz
$ tar xzf redis-2.2.12.tar.gz
$ cd redis-2.2.12
$ make
2. 运行
$ src/redis-server
3. 缓存SET
$ src/redis-cli
redis> set foo bar
OK
4. 缓存GET
redis> get foo
"bar"
5. 参考:
$(document).ready(function(){dp.SyntaxHighlighter.HighlightAll('code');});
原文链接: http://blog.csdn.net/poechant/article/details/6707688