https://github.com/anthinkingcoder/egg-session-memory
https://github.com/anthinkingcoder/egg-session-memory
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/anthinkingcoder/egg-session-memory
- Owner: anthinkingcoder
- License: mit
- Created: 2019-07-01T14:23:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T13:20:45.000Z (over 6 years ago)
- Last Synced: 2025-02-06T20:44:30.445Z (10 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# egg-session-memory
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[npm-image]: https://img.shields.io/npm/v/egg-session-memory.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-session-memory
[travis-image]: https://img.shields.io/travis/eggjs/egg-session-memory.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-session-memory
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-session-memory.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-session-memory?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-session-memory.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-session-memory
[snyk-image]: https://snyk.io/test/npm/egg-session-memory/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-session-memory
[download-image]: https://img.shields.io/npm/dm/egg-session-memory.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-session-memory
A session extension for store session in memory
## Install
```bash
$ npm i egg-session-memory --save
```
## Usage
```js
// {app_root}/config/plugin.js
exports.sessionMemory = {
enable: true,
package: 'egg-session-memory',
};
```
## Configuration
```js
// {app_root}/config/config.default.js
exports.sessionMemory = {
};
```
see [config/config.default.js](config/config.default.js) for more detail.
## Example
## Questions & Suggestions
Please open an issue [here](https://github.com/eggjs/egg/issues).
## License
[MIT](LICENSE)