xiezefan
10/30/2014 - 12:50 PM

dingdong-redis-design.md

Redis Key | Type | Value | Value Example ----|----|---- service:{sid}|hash|Service Object | {"name": "明天下雨提醒我", "category": "天气", ...} client.service.id:{sid}:${data}|string|ClientService's id | UUID - "klfdfd-fdsafdafdasfdas" client.service:{cid}|hash|ClientService Object | {"data":"data string", "parentId":"0542", ...} client.service.follower:{cid}|set|ClientService's id set |UUID - "abcd-efdasdasdasdasdasd" user:{uid}|hash|User Object | {"id":"UUID", "password":"123123123", ...} user.followed:{uid}|set|User followed service set | UUID - "abcd-efdasdasdasdasdasd" user.client.service.remark:{uid}:{cid}|string|Remark|生日提醒 1992-09-12 => 我的生日 client.service.push.token:{push_token}|string|User's ID| UUID - "abcd-efdasdasdasdasdasd" client.service.message:{mid}|string|Message Object JSON| {"id":"abcd-efg", "title":"明天下雨提醒我", ...} message.list|list|Message List|[msg1, msg2, msg3] services.sort.by.create.time|list|Service Id List|[sid1, sid2, sid3]