目录Sorted Set类型的常用操作ZADD 添加元素ZCARD 获取集合成员数量ZCOUNT 获取指定分数段内的成员数量ZINCRBY 给集合中指定成员增加指定分数ZRANGE/ZREVRANGE 返回按索引排序的成员ZRANGEBYSCORE/ZREVRANGEBYSCORE
Let\'s assume I have a database with two tables: categories and articles. Every article belongs to a category.