nomi-schedule
the session plugin of Using redis store.
Installation
$ npm install nomi-session-redis --save
Node.js >= 8.0.0 required.
API
- get
- set
- delete
- destory
- setExpires
Usage
const SessionStore = ;const ctx = ctx;const sessionStore = ctx;sessionStore;sessionStore;sessionStore;sessionStore;
const SessionStore = ;const ctx = ctx;const s1 = ctxpath: '127.0.0.1:9999'sync: true;const s2 = ctxredis:port: 8080host: 127001auth: '22';s1;s1;s2;s2;s2;