Skip to content

Instantly share code, notes, and snippets.

@xiezefan
Created October 30, 2014 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiezefan/98b3cb6df465346ee15d to your computer and use it in GitHub Desktop.
Save xiezefan/98b3cb6df465346ee15d to your computer and use it in GitHub Desktop.

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment