宇天 2021-01-26 13:59:54 +08:00
parent 0b01b0f975
commit f47cbc6138
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
{
"name": "@gm5/session",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"description": "会话中间件。",
"main": "index.js",