在生产模式下运行 node js 时,会记录以下警告:
Warning: connection.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
做了一个简短的研究,我发现我应该通过express-session-mongo或express-session-redis使用其他替代方法来存储会话。
我的问题:
- 这个解决方案是为expressJs使用express.io构建的吗?
- 有没有不使用其中之一的解决方案来解决问题?如您所见,使用其中之一将迫使我安装 mongo 或 redis,这在我的情况下不好。
谢谢你 !