fixed
parent
0b01b0f975
commit
f47cbc6138
|
@ -8,7 +8,7 @@ import Ioredis from 'ioredis'
|
|||
|
||||
export default class Session {
|
||||
constructor(opt) {
|
||||
this.store = new RedisStore({
|
||||
this.store = new Ioredis({
|
||||
host: opt.db.host || '127.0.0.1',
|
||||
port: opt.db.port || 6379,
|
||||
db: opt.db.db || 0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@gm5/session",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"type": "module",
|
||||
"description": "会话中间件。",
|
||||
"main": "index.js",
|
||||
|
|
Loading…
Reference in New Issue