Closed jackple closed 7 years ago
@jackple no demo for MongoDB yet, but it is very similar to Redis demo in README
docs.
For example, you can replace Redis in get
method with MongoDB like this:
async get(sid) {
// this just an instance, something like this
let data = await this.mongo.findOne({sessionid: sid});
return JSON.parse(data);
}
@Secbone Thanks! I will try later
Is there a demo