【发布时间】:2012-02-03 17:08:54
【问题描述】:
我正在使用带有 Connect 中间件的 Node Express。 Connect 的内存会话存储不适合生产:
Warning: connection.session() MemoryStore is not designed for a production environment, as it will leak memory, and obviously only work within a single process.
对于较大的部署,mongo 或 redis 是有意义的。
但是对于生产中的单主机应用程序来说,什么是好的解决方案?
【问题讨论】:
-
我使用的是 cookie-sessiosn,但是否有 sessiosn 数据存储在某处,因为在我的情况下发生的情况是当前会话只显示而不显示以前的会话??