单台redis:
http://www.roncoo.com/article/detail/126625
多台redis
http://blog.csdn.net/u010158267/article/details/51285296