- users:id => "id" 记录最新的主键序列
- users:$account => "id" 通过account查找id
- users:$id:name => "name" 通过id查找name
- users:$id:email => "email" 通过id查找email
- users:$id:last_login => "last_login" 通过id查找最后登录时间
- users:admin => set["account1", "account2", ...] 记录所有管理员权限用户
- users => list["account1","account2", ...] 记录所有的用户,用于列表展示(sort test alpha limit 2 1)
Last active
December 22, 2015 08:59
-
-
Save mccxj/6449058 to your computer and use it in GitHub Desktop.
iknown2 + redis存储结构设计
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repos:$id:versions => list["version1", "version2", ...] 项目所有的版本提交记录
版本表 Version