Skip to content

User model and key in MongoDb & Redis

bstsnail edited this page Nov 17, 2016 · 4 revisions

Users

{
    id:int,
    email:string,
    password:string,
    keys: [
        {
            "name": string,
            "type": string,
            "key": string
        }
    ]
}

Users In Redis

In Redis, we only store id and the keys the keys is store Set in redis, the Set name is like xbit_id.

Clone this wiki locally