We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b724060 commit d01f023Copy full SHA for d01f023
zh/06.2.md
@@ -56,7 +56,7 @@ Go实现整个的流程应该也是这样的,在main包中创建一个全局
56
var globalSessions *session.Manager
57
//然后在init函数中初始化
58
func init() {
59
- globalSessions, _ = NewManager("memory","gosessionid",3600)
+ globalSessions, _ = NewManager("memory", "gosessionid", 3600)
60
}
61
```
62
我们知道session是保存在服务器端的数据,它可以以任何的方式存储,比如存储在内存、数据库或者文件中。因此我们抽象出一个Provider接口,用以表征session管理器底层存储结构。
0 commit comments