egg-session-mongoose
v1.0.4
Published
[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url]
Downloads
17
Readme
egg-session-mongoose
A session extension for store session in MongoDB.
Install
$ npm i egg-session-mongoose --save
Usage
This module dependent on egg-mongoose plugin, so we must enable both.
// {app_root}/config/plugin.js
exports.mongoose = {
enable: true,
package: 'egg-mongoose',
};
exports.sessionMongoose = {
enable: true,
package: 'egg-session-mongoose',
};
Configuration
// {app_root}/config/config.default.js
exports.sessionMongoose = {
name:'Session'
};