redis
gedoua
这个作者很懒,什么都没留下…
展开
-
(一)Redis基础类型
Redis有五种基础类型: [code="java"]String List Set Hash Zset(sorted set)[/code] 一下图片均来自Redis in action [color=red]String:[/color] [img]http://dl2.iteye.com/upload/attachment/0088/3855/27ff0ec4-3443-3...原创 2013-08-19 22:26:26 · 163 阅读 · 0 评论 -
(二)Redis投票应用
1. 用hash存储帖子的基本信息: [img]http://dl2.iteye.com/upload/attachment/0088/4362/99cf9b7b-888f-3671-8718-9a46830ff4dd.png[/img] 2. 使用sorted set来实现按照时间排序和按照投票排序 时间 [img]http://dl2.iteye.com/upload/atta...原创 2013-08-20 22:50:02 · 238 阅读 · 0 评论